ROC curve AlexNet CNN

27 vues (au cours des 30 derniers jours)
Gledson Melotti
Gledson Melotti le 20 Déc 2017
How to calculate the ROC curve using AlexNet CNN from Matlab? I have two class.

Réponses (3)

Gledson Melotti
Gledson Melotti le 4 Oct 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 commentaires
Jhalak Mehta
Jhalak Mehta le 12 Avr 2022
Modifié(e) : Jhalak Mehta le 12 Avr 2022
How do I get the probability?
Hiren Mewada
Hiren Mewada le 25 Jan 2024
classNames = net.Layers(end).Classes;
rocSmallNet = rocmetrics(imdsTest.Labels,score,classNames);
p = plot(rocSmallNet,ShowModelOperatingPoint=false)

Connectez-vous pour commenter.


Salma Hassan
Salma Hassan le 20 Fév 2018
sir did you find the solution i have the same problem
  8 commentaires
Gledson Melotti
Gledson Melotti le 4 Oct 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 le 14 Jan 2022
Please can you help me in the section, becuase I have error thanks

Connectez-vous pour commenter.


Hiren Mewada
Hiren Mewada le 25 Jan 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