SESK: Stuff Everyone Should Know · sesk.info/ai-confusion-matrix
What does a confusion matrix show for a classifier?
Counts of correct and incorrect predictions, by actual and predicted class.
- How long each prediction took
- The model's weights after training
- Counts of right and wrong predictions per class ✔
Why: A confusion matrix is an N by N table for N classes. For yes/no tasks its four cells are true positives, false positives, true negatives and false negatives.
Huh, didn't know that: Precision, recall and accuracy can all be computed from those four cells.
I made a confusion matrix of my weekend plans. Mostly false positives.
Like this card?
References
Answer: Counts of right and wrong predictions per class. A confusion matrix is an N by N table for N classes. For yes/no tasks its four cells are true positives, false positives, true negatives and false negatives.
- Google Machine Learning Glossary: confusion matrix developers.google.com/machine-learning/glossary
An NxN table that summarizes the number of correct and incorrect predictions that a classification model made.
Checked 2026-10-10.
Think this answer is wrong? Tap "Challenge this answer" on the card in the game and tell us why.
More stuff everyone should know
That's stuff everyone should know.