ML glossary › Confusion matrix
What is confusion matrix in machine learning?
A 2 × 2 table counting each kind of right and wrong answer.
Where it shows up
Classification
The confusion matrix
Sort every email by two questions: what did the model say, and what was true? That gives a 2 × 2 table called the confusion matrix. The diagonal (top-left, bottom-right) is right; the other two boxes are mistakes.
See confusion matrix in motion. The lesson animates it step by step, free.
Open the lessonRelated terms
- False positive: Said yes, but the answer was no: a false alarm.
- False negative: Said no, but the answer was yes: a miss.
- Accuracy: The share of all answers that were right.