How the calculator works
In Binary mode you type the four cells of a 2 by 2 confusion matrix. Every metric is computed from those counts with the standard scikit-learn definitions, and any ratio whose denominator is 0 is shown as n/a instead of NaN, with a note explaining why.
- Precision = TP / (TP + FP)
- Recall (sensitivity) = TP / (TP + FN)
- Specificity = TN / (TN + FP)
- F1 = 2TP / (2TP + FP + FN)
- F-beta = (1 + b2)TP / ((1 + b2)TP + b2 FN + FP), where b2 is beta squared
- MCC = (TP x TN - FP x FN) / sqrt((TP + FP)(TP + FN)(TN + FP)(TN + FN))
In Multi-class mode you pick 3 to 8 classes, name them, and fill a grid where rows are the actual class and columns the predicted class. You get a per-class precision, recall and F1 report, macro, weighted and micro averages, balanced accuracy, Cohen's kappa and Gorodkin's multi-class MCC.