How do I know what is the probability that this file belong to this class .wav
2 次查看(过去 30 天)
显示 更早的评论
On the TransferLearningUsingGoogLeNetExample for images, the code was able to predict the class of the image with probability % that this file is belong to this class. I am trying to do that with "signal procssing example Classify Sound Using Deep Learning" example. Once I trained my model and test it with one file, I want the classifer to show this file belong to this class with %100, %70, %40 etc.
idx = randperm(numel(imdsValidation.Files),4);
figure
for i = 1:4
subplot(2,2,i)
I = readimage(imdsValidation,idx(i));
imshow(I)
label = YPred(idx(i));
title(string(label) + ", " + num2str(100*max(probs(idx(i),:)),3) + "%");
end
num2str(100*max(probs(idx(i),:)),3) + "%");
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Simulation, Tuning, and Visualization 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!