Gradient LabSign up free

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 lesson

Related terms