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
0 个评论
回答(1 个)
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).
2 个评论
Med Future
2022-3-12
@Image Analyst and how can i check the image number which is wrongly classified? in imdsTest
Image Analyst
2022-3-12
@Med Future use find:
wronglyPredicted = find(predictedLabels ~= trueLabels);
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!