Macro Accuracy vs Micro Accuracy #863
Unanswered
camilomarino
asked this question in
Classification
Replies: 1 comment
-
I believe micro means overall accuracy, and macro means class-wise accuracy.
you have 7 samples. 5 of them are predicted crrectly, micro = 5 / 7 = 0.714 you have 5 samples with class 0, 80% of class 0 samples are right, you have 2 samples with class 1, 50% of them is right , class-wise average is (50 + 80) / 2 = 130 / 2 = 65% |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
Sorry if the question is obvious, but I've been messing around with torchmetrics for a while and haven't understood the result I'm getting.
I have doubts between the difference of macro-accuracy and micro-accuracy. I have found definitions for macro-micro recovery/accuracy on the web, but not for accuracy. In particular, I wouldn't understand what it means to calculate accuracy per class.
For example, with the following binary classification example, I get 2 different results for the micro and macro accuracy:
The associated confusion matrix is:
I appreciate if you could clarify it for me.
Beta Was this translation helpful? Give feedback.
All reactions