MATLAB Answers

How to plot a ROC curve for CNN?

30 views (last 30 days)
Hardit Singh
Hardit Singh on 7 Jun 2020
Answered: Jalaj Gambhir on 10 Jun 2020
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.

  0 Comments

Sign in to comment.

Answers (1)

Jalaj Gambhir
Jalaj Gambhir on 10 Jun 2020
Hi,
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!

  0 Comments

Sign in to comment.


Translated by