What is the easiest way to change the displayed name of a metric? I have multiple FBeta (with different thresholds) and I’d like to name them differently. I tried doing m.name = 'new_name'
And what exactly are you trying to do? More info might help.
If you’re familiar with Python, you could subclass fast.ai’s Metric and add a different __str__() method to it that displays what you want when printing out. But that would just be cosmetic and I don’t really know why you want to do what you mentioned.
Disclaimer: there might be a great way to do this and a perfect use case. I couldn’t find anything quickly in the docs I linked up there, but I’m also quite new to using the library, so ¯\_(ツ)_/¯
I did read the docs on metrics, but there is nothing on changing the name unfortunately.
My use case is as I described above: I want to measure FBeta scores but with multiple, different thresholds. If I just add them as metrics, they are all named just “f_beta_score”, but I want them named: “f_beta_at_0.5”, “f_beta_at_0.25” etc
I can create my own metric and change its name by doing self.__name__ = 'blah', but then I’d like to use fastai’s FBeta, so I store in my own metric: self.metric = FBetaMulti(2)