Accuracy
Accuracy is the fraction of a classifier's correct predictions, but it misleads on imbalanced classes —hence it is paired with precision, recall, F1 and MCC.
Accuracy is the most intuitive metric for evaluating a classifier: it measures the fraction of predictions the model gets right out of the total. In a classification task you add up the hits —the true positives (TP) and true negatives (TN)— and divide by every prediction made. In plain text: Accuracy = (TP + TN) / (TP + TN + FP + FN), where FP are false positives and FN false negatives. The result, between 0 and 1 or given as a percentage, answers a simple question: what share of cases did the model label correctly?
How it is calculated
Every evaluation of a classifier starts from the confusion matrix, the table that cross-tabulates true labels against predicted ones and sorts each case into one of four cells: TP, TN, FP and FN. Accuracy collapses that table into a single number: the diagonal hits divided by the total. On a balanced binary problem —say, half legitimate emails and half spam— it is an honest, easy-to-communicate measure. In machine learning, «accuracy» carries the meaning above: the proportion of correct predictions.
Why it misleads with imbalanced classes
What to use instead
The metric should follow the cost of the error. F1 is the harmonic mean of precision and recall, but multiclass problems require the averaging rule—micro, macro or weighted—to be stated: they are not interchangeable. Balanced accuracy averages recall across classes and prevents the majority class's size alone from inflating the score. Conventional accuracy can accompany these measures; it cannot replace that choice.
Pieces using this term
- Graph Engineering: The Signal, the Spend, and What We Don't Know (2026-08-04)
- EFE and Soria Noticias show two newsroom uses for AI (2026-07-28)
- How to Read an AI Demo Without Mistaking It for Proof (2026-07-27)
- AI Reaches Luxury: How to Tell a Brand Demonstration From a Brand Transformation (2026-07-27)
- IVI RMA eyes Spain for AI and robotics in IVF: what is proven and what is not (2026-07-27)
- How to verify a chatbot claim before you use it (2026-07-26)
- When several AI models agree, they may still be wrong (2026-07-26)
- Alignment plausibility: a proposal for evidence in mental-health AI (2026-07-25)
This article was produced with artificial intelligence under human editorial oversight.