How to draw ROC curve using value of confusion matrix?

前端 未结 2 1690
小蘑菇
小蘑菇 2021-01-23 01:18

Consider i have a classifier like A and the result of its classification gives me the following table:

    TP  TN  FP  FN
A   225 100 175 100
         


        
2条回答
  •  逝去的感伤
    2021-01-23 01:54

    This is impossible, because you only have a confusion matrix for a certain (unknown) threshold of your classifier. A ROC-Curve contains information about all possible thresholds.

    The Confusion matrix corresponds to a single point on your ROC Curve:

    Sensitivity = TP / (TP + FN)
    1 - Specificy = TN / (TN + FP) .

提交回复
热议问题