The size of the generated confusion matrix using confusionmat function is not right, why?

조회 수: 1 (최근 30일)
Hello everyone,
I am working on a traffic sign recognition code in MATLAB using Belgian Traffic Sign Dataset.
The dataset consists of training data and test data (or evaluation data).
I resized the given images and extracted HOG features using the VL_HOG function from VL_feat library.
Then, I trained a multi class SVM using all of the signs inside the training dataset.
I used the fitcecoc function to obtain the classifier.
Upon training the multi-class SVM, I want to test the classifier performance using the test data and I used the predict and confusionmat functions.
There are 62 categories inside the training set (there are samples of 62 different traffic signs). However, the size of the returned confusion matrix is 53 by 53 instead of 62 by 62.
Why the size of the confusion matrix is not the same as the number of categories?

채택된 답변

Canberk Suat Gurel
Canberk Suat Gurel 2018년 5월 21일
I found out that 9 of the folders in the testing dataset were empty, reducing the size of the confusion matrix to 53 by 53.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Recognition, Object Detection, and Semantic Segmentation에 대해 자세히 알아보기

제품


릴리스

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by