I have a binary classifier, which classifies an input X as class zero if its predicted value is below some threshold (say T), and one otherwise.
I have all predicted and actual values for every input. So I can have both predicted class and actual class of an input.
Now I want to have the ROC curve for this classifier with MATLAB. How should I do it?
Use
perfcurve:labelsare the true labels of the data,scoresare the output scores from your classifier (before the threshold) andposclassis the positive class in your labels.