You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
markussteindl
changed the title
top-k multiclass macro accuracy is not calculated correctly.
top-k multiclass macro accuracy is not calculated correctly
Mar 1, 2024
🐛 Bug
If some classes are not observed, the top-k multiclass macro accuracy is not calculated correctly.
To Reproduce
Expected behavior
In the example, the top-1 and top-2 accuracy should be equal.
Note that class 1 does not occur in the targets.
The classes have the following top-1 and top-2 accuracies before averaging:
Thus, the macro aggregation of the top-1 and top-2 accuracy should be equal with a value of 0.5 (or 0.333, if we take the nan into account).
Environment
The text was updated successfully, but these errors were encountered: