How to check which image is wrongly classified in MATLAB

조회 수: 7 (최근 30일)
Med Future
Med Future 2022년 3월 12일
답변: yanqi liu 2022년 3월 14일
Hello Everyone, I hope you are doing welll,
i have found the missclassified index
I want to to plot which images are classfied wrongly in imdsTest
Can anybody help me in this
predicted = classify(trainedNet,imdsTest);
figure
confusionchart(imdsTest.Labels,predicted,'Normalization','column-normalized')
wronglyPredicted = predicted~= imdsTest.Labels;

답변 (2개)

Image Analyst
Image Analyst 2022년 3월 12일
Use find():
% Get the indexes of the incorrectly predicted images:
wronglyPredicted = find(predicted~= imdsTest.Labels)

yanqi liu
yanqi liu 2022년 3월 14일
predicted = classify(trainedNet,imdsTest);
figure
confusionchart(imdsTest.Labels,predicted,'Normalization','column-normalized')
wronglyPredicted = predicted~= imdsTest.Labels;
imdsTest.Files{wronglyPredicted}

카테고리

Help CenterFile Exchange에서 Image Data Workflows에 대해 자세히 알아보기

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by