I noticed that when one of the classes (complete testing set for one class) gets fully misclassified for other classes, the confusion matrix, instead of showing what it's been misclassified with, sets the whole class row to 0. I am using knn for the classification.
MATLAB: Confusion matrix misclassification problem
classificationconfusion matrixfitcdiscrldanan
Best Answer