How to check which image is wrongly classified in MATLAB
7 次查看(过去 30 天)
显示 更早的评论
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;
0 个评论
回答(2 个)
Image Analyst
2022-3-12
Use find():
% Get the indexes of the incorrectly predicted images:
wronglyPredicted = find(predicted~= imdsTest.Labels)
0 个评论
yanqi liu
2022-3-14
predicted = classify(trainedNet,imdsTest);
figure
confusionchart(imdsTest.Labels,predicted,'Normalization','column-normalized')
wronglyPredicted = predicted~= imdsTest.Labels;
imdsTest.Files{wronglyPredicted}
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Data Workflows 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!