Classification confusion matrix metrics calculator

Binary classification with the positive class chosen by you.

Your inputs

Use the units shown.

Positive-class precision (%)
75
Positive-class recall (%)
60
F1 score (%)
66.66666667
Overall accuracy (%)
70

Your calculation
How is this calculated?

Divide true positives by predicted positives.

Divide true positives by actual positives.

Use the harmonic mean of positive-class precision and recall.

Divide correct positive and negative predictions by all cases.

Binary classification with the positive class chosen by you. All counts refer to the same evaluation set; undefined precision or recall denominators are rejected.

scikit-learn model evaluation documentation ↗

Try an example

Worked example

Positive-class precision (%): 75

Inputs
  • True positives (count): 30
  • False positives (count): 10
  • False negatives (count): 20
  • True negatives (count): 40

Compare inputs

Positive-class precision (%): 80

Inputs
  • True positives (count): 40
  • False positives (count): 10
  • False negatives (count): 10
  • True negatives (count): 40
Share this page
Share this calculator

Leave unchecked to share the page without your entered values.