ROC curve AlexNet CNN

조회 수: 27 (최근 30일)
Gledson Melotti
Gledson Melotti 2017년 12월 20일
답변: Hiren Mewada 2024년 1월 25일
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)

카테고리

Help CenterFile Exchange에서 Detection에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by