Borrar filtros
Borrar filtros

How to check which image is wrongly classified in MATLAB

4 visualizaciones (últimos 30 días)
Med Future
Med Future el 12 de Mzo. de 2022
Respondida: yanqi liu el 14 de Mzo. de 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;

Respuestas (2)

Image Analyst
Image Analyst el 12 de Mzo. de 2022
Use find():
% Get the indexes of the incorrectly predicted images:
wronglyPredicted = find(predicted~= imdsTest.Labels)

yanqi liu
yanqi liu el 14 de Mzo. de 2022
predicted = classify(trainedNet,imdsTest);
figure
confusionchart(imdsTest.Labels,predicted,'Normalization','column-normalized')
wronglyPredicted = predicted~= imdsTest.Labels;
imdsTest.Files{wronglyPredicted}

Categorías

Más información sobre Image Data Workflows en Help Center y File Exchange.

Productos


Versión

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by