plot_roc {EGAD} | R Documentation |
The function calculates the FPR and TRPR for the receiver operating characteristic (ROC) and plots the curve
plot_roc(scores, labels)
scores |
numeric array |
labels |
binary array |
FPR,TPR numeric arrays
labels <- c(rep(0,10)) labels[c(1,3,5)] <- 1 scores <- 10:1 roc <- plot_roc(scores, labels)