How to view images that were classified by mistake?

3 次查看(过去 30 天)
Hello everyone,
So confusion matrix shows how many images were classified wrongly, is there any way I can view that mistaken images?
Thank you in advance

回答(1 个)

Image Analyst
Image Analyst 2020-3-31
Are you using confusionchart() or confusionmat()? So, either way, you have a list of the true labels and the predicted labels. To get the indexes of the wrong predictions you can simply use ~=:
wronglyPredicted = predictedLabels ~= trueLabels;
So once you have that you can call up the images for where wronglyPredicted is true (1).

Community Treasure Hunt

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

Start Hunting!

Translated by