Description Usage Arguments Value See Also Examples
This function computes the value of AUROC and AUPR at the same time
1 | auroc_aupr(scores, labels, mode = "both")
|
scores |
A numeric dataset of predicted scores, a vector |
labels |
A numeric, character, logical, or factor dataset of observed labels |
mode |
A string that specifies the types of evaluation measures that the evalmod function calculates, roc, pr, both. the default is both. |
value of computed scores of roc or prc.
1 2 3 | x <- c(0.1, 0.5, 0.6, 0.2)
y <- factor(c('yes','no','yes','no'))
auroc_aupr(scores = x, labels = y)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.