What does balanced accuracy reveal on rare classes?

Balanced accuracy averages recall across classes, giving each class equal influence.

balanced_accuracy_score in practice

Guessing white on 99 white cards and one black card earns 99% accuracy but 50% balanced accuracy. One black example still gives an unstable recall estimate.

中文

类别极不平衡时如何读平衡准确率?

平衡准确率对各类别的召回率取平均,使每类在评分时占同样权重。

balanced_accuracy_score 应用实例

99 张白卡、1 张黑卡全部猜白,普通准确率为 99%,平衡准确率是 50%。黑卡只有一张,其召回估计仍很不稳定。

References / 参考来源

Keep reading / 继续阅读