Confusion matrix misclassification problem

조회 수: 2 (최근 30일)
sprklspring
sprklspring 2018년 10월 3일
다시 열림: Walter Roberson 2018년 12월 22일
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.

채택된 답변

ANKUR KUMAR
ANKUR KUMAR 2018년 10월 3일
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개)

카테고리

Help CenterFile Exchange에서 Discriminant Analysis에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by