Second Prediction for CNN network
9 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hello,
I am developing an artificial intelligence system for recognizing dog breeds, which is currently still being tested and working with flowers. It is made through a Convolutional Neural Network.
I have the first predicted result, which is considered the closest in percentage. Can anyone help me to make a second and possibly a third prediction?
This is the code brief for the result field:
% Button pushed function: pushbutton2
function pushbutton2_Callback(app, event)
I = app.I;
I= imresize(I,[500,500],'nearest');
[Pred,scores] = classify(net,I);
scores = max(double(scores*100));
app.edit2.Value = scores + "%" + " " + string(Pred);
*edit2 is the the field for the first prediction*
Thanks in advance :)

0 Kommentare
Antworten (1)
Image Analyst
am 9 Jul. 2022
Try maxk
topScores = maxk(scores , 3);
1 Kommentar
Tsvetislava Ivanova
am 9 Jul. 2022
Bearbeitet: Tsvetislava Ivanova
am 9 Jul. 2022
Siehe auch
Kategorien
Mehr zu Delaunay Triangulation finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!