ROC curve AlexNet CNN

28 次查看(过去 30 天)
Gledson Melotti
Gledson Melotti 2017-12-20
How to calculate the ROC curve using AlexNet CNN from Matlab? I have two class.

回答(3 个)

Gledson Melotti
Gledson Melotti 2018-10-4
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 个评论
Jhalak Mehta
Jhalak Mehta 2022-4-12
编辑:Jhalak Mehta 2022-4-12
How do I get the probability?
Hiren Mewada
Hiren Mewada 2024-1-25
classNames = net.Layers(end).Classes;
rocSmallNet = rocmetrics(imdsTest.Labels,score,classNames);
p = plot(rocSmallNet,ShowModelOperatingPoint=false)

请先登录,再进行评论。


Salma Hassan
Salma Hassan 2018-2-20
sir did you find the solution i have the same problem
  8 个评论
Gledson Melotti
Gledson Melotti 2018-10-4
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 2022-1-14
Please can you help me in the section, becuase I have error thanks

请先登录,再进行评论。


Hiren Mewada
Hiren Mewada 2024-1-25
[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