ROC curve for a binary classifier in MATLAB

前端 未结 1 772
挽巷
挽巷 2020-12-19 16:50

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

相关标签:
1条回答
  • 2020-12-19 17:21

    Use perfcurve:

    [X,Y] = perfcurve(labels,scores,posclass);
    plot(X,Y);
    

    labels are the true labels of the data, scores are the output scores from your classifier (before the threshold) and posclass is the positive class in your labels.

    0 讨论(0)
提交回复
热议问题