Index Ai Academy
Glossary · Phase 3 · Machine learning

Confusion matrix

Also written: confusion matrices

A table counting a classifier's predictions against the true answers: one row per true class, one column per predicted class. For yes/no it shows true and false positives and negatives.

A single accuracy number says how often the model is right. It doesn't say what it gets wrong. A confusion matrix does. It's a tally table, like a mail room keeping count of where letters should have gone and where they actually went.

Try it now

One score per class, turned into probabilities that add up to 1. Drag a score and watch every probability move.

Learn it properly

Multiclass classification · Softmax and cross-entropy for more than two classes. About 30 minutes.

Create a free account See what's in the lesson

Other terms from the same lesson

Never trained an AI?

Teach a small one to write, right in your browser. It takes about 20 seconds and needs no account.

Teach it to write