ROC curve AlexNet CNN

28 visualizzazioni (ultimi 30 giorni)
Gledson Melotti
Gledson Melotti il 20 Dic 2017
Risposto: Hiren Mewada il 25 Gen 2024
How to calculate the ROC curve using AlexNet CNN from Matlab? I have two class.

Risposte (3)

Gledson Melotti
Gledson Melotti il 4 Ott 2018
cgt = double(testeImagesLabels); clabel = double(Test_predict); cscores = double(Probability);
figure(2) [X,Y,T,AUC,OPTROCPT,SUBY,SUBYNAMES] = perfcurve(cgt,cscores(:,1),1); plot(X,Y,'k');
  8 Commenti
Jhalak Mehta
Jhalak Mehta il 12 Apr 2022
Modificato: Jhalak Mehta il 12 Apr 2022
How do I get the probability?
Hiren Mewada
Hiren Mewada il 25 Gen 2024
classNames = net.Layers(end).Classes;
rocSmallNet = rocmetrics(imdsTest.Labels,score,classNames);
p = plot(rocSmallNet,ShowModelOperatingPoint=false)

Accedi per commentare.


Salma Hassan
Salma Hassan il 20 Feb 2018
sir did you find the solution i have the same problem
  8 Commenti
Gledson Melotti
Gledson Melotti il 4 Ott 2018
cgt = double(testeImagesLabels); clabel = double(Test_predict); cscores = double(Probability);
figure(2) [X,Y,T,AUC,OPTROCPT,SUBY,SUBYNAMES] = perfcurve(cgt,cscores(:,1),1); plot(X,Y,'k');
mustafa kanaan
mustafa kanaan il 14 Gen 2022
Please can you help me in the section, becuase I have error thanks

Accedi per commentare.


Hiren Mewada
Hiren Mewada il 25 Gen 2024
[predictions,score] = classify(net, imdsTest); % To get prediction score from last layer for each class
classNames = net.Layers(end).Classes;
rocSmallNet = rocmetrics(imdsTest.Labels,score,classNames);
p = plot(rocSmallNet,ShowModelOperatingPoint=false)

Community Treasure Hunt

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

Start Hunting!

Translated by