How to check which image is wrongly classified in MATLAB

5 Ansichten (letzte 30 Tage)
Med Future
Med Future am 12 Mär. 2022
Beantwortet: yanqi liu am 14 Mär. 2022
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;

Antworten (2)

Image Analyst
Image Analyst am 12 Mär. 2022
Use find():
% Get the indexes of the incorrectly predicted images:
wronglyPredicted = find(predicted~= imdsTest.Labels)

yanqi liu
yanqi liu am 14 Mär. 2022
predicted = classify(trainedNet,imdsTest);
figure
confusionchart(imdsTest.Labels,predicted,'Normalization','column-normalized')
wronglyPredicted = predicted~= imdsTest.Labels;
imdsTest.Files{wronglyPredicted}

Kategorien

Mehr zu Image Data Workflows finden Sie in Help Center und File Exchange

Produkte


Version

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by