Macro Accuracy vs Micro Accuracy #863
-
Beta Was this translation helpful? Give feedback.
Answered by
weiaicunzai
Feb 29, 2024
Replies: 1 comment 1 reply
-
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.
1 reply
Answer selected by
Borda
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to 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%