Confusion matrix misclassification problem
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
sprklspring
am 3 Okt. 2018
Erneut geöffnet: Walter Roberson
am 22 Dez. 2018
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.
1 Kommentar
Akzeptierte Antwort
ANKUR KUMAR
am 3 Okt. 2018
To get rid of singeton matrix, use squeeze or purmute.
A=randi(10,25,1,20);
size(A)
ans =
25 1 20
B=squeeze(A);
size(B)
ans =
25 20
C=permute(A,[1,3,2]);
size(C)
ans =
25 20
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Discriminant Analysis finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!