Calculate AUC in R?

前端 未结 10 1288
感动是毒
感动是毒 2020-12-07 09:45

Given a vector of scores and a vector of actual class labels, how do you calculate a single-number AUC metric for a binary classifier in the R language or in simple English?

10条回答
  •  再見小時候
    2020-12-07 10:26

    I usually use the function ROC from the DiagnosisMed package. I like the graph it produces. AUC is returned along with it's confidence interval and it is also mentioned on the graph.

    ROC(classLabels,scores,Full=TRUE)
    

提交回复
热议问题