"It got 9 out of 10 right!" sounds great… but it can hide big mistakes. Real scientists use smarter scores: precision, recall, and F1. Let's build a cat detector and discover exactly what they mean.
Each 🐱/🐶 sits at the score the AI gave it (how "catty" it looks). Everything to the right of the yellow line, the AI calls CAT; to the left, DOG. Drag the line and watch who gets caught — and who gets it wrong (red ring).
This is a confusion matrix. Whenever the AI guesses, it's either right or wrong, about a cat or a dog. That makes exactly 4 possibilities:
Precision = TP ÷ (TP + FP). Recall = TP ÷ (TP + FN). Accuracy = (TP + TN) ÷ everything. F1 = 2 × (Precision × Recall) ÷ (Precision + Recall) — it's only high when BOTH are high. Recall is also called sensitivity; TN ÷ (TN+FP) is called specificity.
Use the slider up top to hit each target. Watch how winning one can cost you another!
Get Recall = 100% — don't miss a single cat.
Get Precision = 100% — never call a dog a cat.
Get F1 ≥ 90% — the sweet spot between both.
Accuracy is the beginner metric. Real benchmarks use sharper numbers:
✅ Easy. ⚠️ Lies when classes are imbalanced (99% by always saying 'no').
The real report card; ROC-AUC summarizes every threshold at once. ✅ Honest.
mean Average Precision - the single number that ranks detectors on leaderboards.
You can now read an AI's report card like a pro: TP, FP, FN, TN, and the scores built from them — accuracy, precision, recall, and F1.