auc_pairs | R Documentation |
Get the Area under the ROC curve to assess classifier performance using pairwise concordance
auc_pairs(estimated.score, true.labels, verbose = TRUE)
estimated.score |
Float, Vector: Probabilities or model scores (e.g. c(.32, .75, .63), etc) |
true.labels |
True labels of outcomes (e.g. c(0, 1, 1)) |
verbose |
Logical: If TRUE, print messages to output |
The first level of true.labels
must be the positive class, and high numbers in
estimated.score
should correspond to the positive class.
## Not run:
true.labels <- factor(c("a", "a", "a", "b", "b", "b", "b"))
estimated.score <- c(0.7, 0.55, 0.45, 0.25, 0.6, 0.7, 0.2)
auc_pairs(estimated.score, true.labels, verbose = TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.