plot_prc {EGAD} | R Documentation |
The function calculates the precision and recall and plots the curve
plot_prc(scores, labels)
scores |
numeric array |
labels |
binary array |
prc numeric arrays
labels <- c(rep(0,10)) labels[c(1,3,5)] <- 1 scores <- 10:1 roc <- plot_prc(scores, labels)