Learn Before
Concept

Muti-class Confusion Matrix

The multi-class confusion matrix is a straightforward extension of the binary classifier two by two confusion matrix. For example, for classification of hand-written digits, there are ten classes for each digit, zero through nine. So, the ten-class confusion matrix is a 10x10 matrix with the true digit class indexed by row and the predicted digit class indexed by column. Like the 2x2 case, the correct prediction is by the classifier where the true class matches the predicted class are all along the diagonal and misclassifications are off the diagonal.

In this example, most of the predictions are correct with only a few misclassifications. The most frequent type of mistake here is misclassifying the true digit, 8 as a predicted digit 1 which happened three times. And the overall accuracy is high, about 97%.

Image 0

0

1

Updated 2021-03-03

Tags

Data Science