Class-wise accuacy - PyTorch Forums
https://discuss.pytorch.org/t/class-wise-accuacy/8814106.07.2020 · class A has 1000 samples and class B has 10 samples. Let’s say you get all 1000 class A predictions wrong and get all 10 class B predictions right. Your overall accuracy ([1]) will be 10 / 1010, which is about 1%. But your class A accuracy is 0% and your class B accuracy is 100%, so averaging those accuracies over the two classes will give ...