Accuracy is the simplest score: correct predictions divided by total predictions. For a balanced, well-defined classification task it’s a reasonable headline number, and it’s what most people reach for first.
The trap is class imbalance. If 99% of cases are negative, a model that blindly says “negative” every time scores 99% accuracy and catches zero of the positives. That’s why accuracy alone is dangerous — it hides where the model actually fails. Pair it with precision and recall (or F1) to see the failures it conceals, and for AI agents, remember that a correct final answer says nothing about whether the agent took a sensible path to get there.
Same accuracy, different failures
Suppose 100 labeled tickets contain 10 urgent cases and 90 routine ones, and a positive prediction flags a ticket for review. One rule calls every ticket routine; another flags some:
| Count | Always routine | Flagging rule |
|---|---|---|
| Correct flags (TP) | 0 | 8 |
| False flags (FP) | 0 | 8 |
| Missed urgent (FN) | 10 | 2 |
| Correct routine (TN) | 90 | 82 |
| Accuracy | 90/100 = 90% | 90/100 = 90% |
Both make 10 errors. The first misses every urgent ticket; the second catches eight of them and adds eight unnecessary reviews. The headline number cannot tell those apart, so report the four counts and the class sizes with it, and decide how much a missed urgent ticket costs against a wasted review before choosing a rule.
Say how the score was computed, too. For multilabel data, scikit-learn’s accuracy_score computes subset accuracy: “the set of labels predicted for a sample must exactly match the corresponding set of labels” in the reference (scikit-learn, accuracy_score). That is stricter than counting each label decision separately, and the two can give very different numbers for the same predictions.
Sources
- Google Machine Learning Crash Course: Accuracy, recall, precision and related metrics — Defines accuracy as the proportion of all classifications that were correct, (TP+TN)/(TP+TN+FP+FN), and recommends F1 over accuracy for class-imbalanced datasets; checked October 26, 2026.
- scikit-learn: accuracy_score — Computes the fraction or count of correct predictions; for multilabel data it computes subset accuracy, where a sample's whole predicted label set must match. Checked November 2, 2026.
Go deeper
From the conversation
-
Explaining Eval Engineering | Galileo's Vikram Chatterji -
Hallucinations Are a Data Architecture Problem | Sudhir Hasbe, Neo4j -
The AI Framework Era Is Over: Why Context Is the Moat | Jerry Liu of LlamaIndex -
Why Context Alone Isn't Enough for Enterprise AI Agents | WisdomAI CPO Kapil Chhabra -
AI in 2025: Agents & The Rise of Evaluation-Driven Development | Galileo's Yash Sheth & Atindriyo Sanyal -
Beyond Chatbots: How Twilio Uses AI to Strengthen Human Connection | Vinnie Giarrusso -
How Intercom Cut $250K/Month by Ditching GPT for Open Models | Fergal Reid -
The First Fully Autonomous AI Attack is Coming | Kris Lovejoy, Kyndryl