How it works
Calculate accuracy, precision, recall, specificity, and F1 from the four counts in a binary confusion matrix.
Worked example
True positives: 40 · True negatives: 40 · False positives: 10 · False negatives: 10. The result is 80%.
How to read the result
Use whole-number counts. A metric with a zero denominator is undefined.
Classification metric definitions