MCC#
- class scio.eval.MCC[source]#
Bases:
BaseDiscriminativePowerMaximum Matthews Correlation Coefficient.
Evaluates to the maximum Matthews Correlation Coefficient over every possible threshold:
\[MCC = \max_{\text{threshold}\in\mathbb{R}}MCC(\text{threshold}),\]where \(\text{threshold}\) naturally defines \(FP, TP, FN, TN\), and
\[MCC(\text{threshold}) = \frac{TP\times TN - FP\times FN} {\sqrt{(TP+FP) (TP+FN) (TN+TP) (TN+FN)}}.\]One has \(MCC\in[0, 1]\) since, for example, the degenerate case \(\text{threshold}=+\infty\) evaluates to \(0\) for consistency.