How to plot a ROC curve for CNN?

조회 수: 20 (최근 30일)
Hardit Singh
Hardit Singh . 2020년 6월 7일
답변: Jalaj Gambhir . 2020년 6월 10일
I have trained a CNN in Matlab 2019b and I have a trainednet.mat file which has the trained CNN. I am able to classify images using the classify(net,im) function but I am unsure of how to generate a ROC curve. I have seen the perfcurve() function but I am unsure of how to get all the inputs the function needs. Any help would be appreciated.

답변 (1개)

Jalaj Gambhir
Jalaj Gambhir 2020년 6월 10일
Have a look at the solution given in this post:
perfcurve requires 3 input arguements, the ground truth labels of each image, the predicted scores by classify function, and the class labels that is considered to be positive. Look at the example in the perfcurve documentation link shared above,
Hope this helps!


Help CenterFile Exchange에서 Image Data Workflows에 대해 자세히 알아보기


Community Treasure Hunt

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

Start Hunting!

Translated by