Low MulticlassAccuracy with average "macro" and unseen classes might be unexpected #1643
Unanswered
phisad
asked this question in
Classification
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Version: torchmetrics 0.10.3
I recently used the "macro" average because I had a class that had a majority of cases in the dataset. Now, I also have a class that never occurs in the dataset. I was able to fix the issue with the majority class. Still, the accuracy scores were rather low.
Interestingly this comes from the fact, that the measure calculates a 0% accuracy for classes that are never seen during training. I think this might confuse people. I would rather (a) ignore that class for the computation or (b) assume a 100% accuracy for that class.
With micro we get the expected result.
Beta Was this translation helpful? Give feedback.
All reactions