ROC curve AlexNet CNN

18 Ansichten (letzte 30 Tage)
Gledson Melotti
Gledson Melotti am 20 Dez. 2017
Beantwortet: Hiren Mewada am 25 Jan. 2024
How to calculate the ROC curve using AlexNet CNN from Matlab? I have two class.

Antworten (3)

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

Melden Sie sich an, um zu kommentieren.


Salma Hassan
Salma Hassan am 20 Feb. 2018
sir did you find the solution i have the same problem
  8 Kommentare
Gledson Melotti
Gledson Melotti am 4 Okt. 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 am 14 Jan. 2022
Please can you help me in the section, becuase I have error thanks

Melden Sie sich an, um zu kommentieren.


Hiren Mewada
Hiren Mewada am 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