Data science and machine learning evaluation

Classification confusion matrix metrics calculator

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

Your numbers

Use the units shown. Results update as you change valid inputs.

YOUR RESULT

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

THE NUMBERS, EXPLAINED

How to use this calculator.

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

Start with your inputs

Enter true positives (count), false positives (count), false negatives (count), true negatives (count). Keep amounts in the units shown on each field. The example is a starting point, not a recommended value.

InputExample value
True positives (count)30
False positives (count)10
False negatives (count)20
True negatives (count)40

A worked example

With the example inputs above, positive-class precision (%) is 75. Change the inputs to explore your own scenario.

All results for the example inputs above
ResultExample answer
Positive-class precision (%)75
Positive-class recall (%)60
F1 score (%)66.666667
Overall accuracy (%)70

How this is calculated

Positive-class precision (%)

Divide true positives by predicted positives.

Positive-class recall (%)

Divide true positives by actual positives.

F1 score (%)

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

Overall accuracy (%)

Divide correct positive and negative predictions by all cases.

Symbols and units
a
True positives (count)
b
False positives (count)
c
False negatives (count)
d
True negatives (count)

Use the units shown. A list keeps the order in which you enter its values. The symbol ^ means “raised to the power of”.

Assumptions and limits

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

Calculations use the values you enter. Blank or invalid inputs show an error instead of silently substituting zero. Results are displayed to useful precision; calculations retain the underlying numeric precision.

Questions about this tool

What does the result tell me?

Positive-class precision (%); Positive-class recall (%); F1 score (%); Overall accuracy (%). The result applies to the method and inputs described above. Check the units and assumptions before using it in a decision.

Why might another calculator differ?

Differences in units, rounding, timing or model definitions can produce different answers. Compare the input definitions and the method, rather than only the final number. For this tool: Binary classification with the positive class chosen by you. All counts refer to the same evaluation set; undefined precision or recall denominators are rejected.

Are my inputs stored or sent to AI?

Calculations on this page happen in your browser. The separate AI question finder sends its submitted conversation to OpenAI; these calculator fields are not sent. Favourites and recent tool names are stored locally. A shared link contains the inputs you choose to include.

Further reading

scikit-learn model evaluation documentation ↗

Background reading; this does not imply endorsement or independent review of SumFizz.

Review status

Software example and browser checks are recorded in our quality report. No external expert review is claimed. Created with coding assistance; calculations run as ordinary browser code.

Read the quality report →