How does MCC summarize a binary confusion matrix?

The Matthews correlation coefficient measures association between predicted and actual labels using all four binary confusion counts.

matthews_corrcoef in practice

Reversing every label on a balanced black-and-white deck gives MCC of −1. On a skewed deck, publish the four cell counts alongside it to show where errors arise.

中文

MCC 如何同时考虑误报和漏报?

马修斯相关系数衡量预测标签和真实标签的相关程度,计算综合使用混淆矩阵里的四个计数。

matthews_corrcoef 应用实例

十张卡片五黑五白,如果恰好每张都猜反,MCC 是 −1。换成高度不均衡的测试集时,同时公布四格计数才能看出错在哪里。

References / 参考来源

Keep reading / 继续阅读