ROC curve AlexNet CNN
Show older comments
How to calculate the ROC curve using AlexNet CNN from Matlab? I have two class.
Answers (3)
Gledson Melotti
on 4 Oct 2018
1 vote
8 Comments
Win Sheng Liew
on 4 Oct 2018
May I know what is your testeImagesLabels,Test_predict and Probability?
Gledson Melotti
on 12 Dec 2018
Aneeba NAJEEB
on 22 Apr 2019
How to plot when we have 6 classes?
Gledson Melotti
on 22 Apr 2019
Roozbeh Kh
on 22 Feb 2021
I have 12 classes , how to make it one agaist all 12 ?
Peter
on 21 Feb 2022
Please see the Plot ROC Curve for Classification Tree example in the perfcurve discription for how to do this.
Jhalak Mehta
on 12 Apr 2022
Edited: Jhalak Mehta
on 12 Apr 2022
How do I get the probability?
Hiren Mewada
on 25 Jan 2024
classNames = net.Layers(end).Classes;
rocSmallNet = rocmetrics(imdsTest.Labels,score,classNames);
p = plot(rocSmallNet,ShowModelOperatingPoint=false)
Salma Hassan
on 20 Feb 2018
0 votes
sir did you find the solution i have the same problem
8 Comments
Gledson Melotti
on 22 Feb 2018
Nazia Hameed
on 9 Apr 2018
did u find any solution?
Gledson Melotti
on 10 Apr 2018
Edited: Gledson Melotti
on 10 Apr 2018
Salma Hassan
on 28 Jul 2018
Edited: Salma Hassan
on 28 Jul 2018
sir i change my code to yours and i got this figure

and if i change the line into score(:,2),1 i got this

which one is true
Gledson Melotti
on 29 Jul 2018
Win Sheng Liew
on 2 Oct 2018
Sir, may i have your code plss.
Gledson Melotti
on 4 Oct 2018
mustafa kanaan
on 14 Jan 2022
Please can you help me in the section, becuase I have error thanks
Hiren Mewada
on 25 Jan 2024
0 votes
[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)
Categories
Find more on Detection in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!