How to check which image is wrongly classified in MATLAB

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;

Risposte (2)

Use find():
% Get the indexes of the incorrectly predicted images:
wronglyPredicted = find(predicted~= imdsTest.Labels)
predicted = classify(trainedNet,imdsTest);
figure
confusionchart(imdsTest.Labels,predicted,'Normalization','column-normalized')
wronglyPredicted = predicted~= imdsTest.Labels;
imdsTest.Files{wronglyPredicted}

Categorie

Scopri di più su Deep Learning Toolbox in Centro assistenza e File Exchange

Prodotti

Release

R2021b

Richiesto:

il 12 Mar 2022

Risposto:

il 14 Mar 2022

Community Treasure Hunt

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

Start Hunting!

Translated by