View source: R/get_auc.xplus.R
| get_auc | R Documentation |
Compute AUC for predictions from a model
get_auc(object, newx = NULL, newy = NULL, weights = NULL, ...)
## S3 method for class 'xplus'
get_auc(object, newx = NULL, newy = NULL, weights = NULL, ...)
object |
A model object. |
newx |
Feature matrix. |
newy |
True labels. |
weights |
Optional sample weights. |
... |
Arguments passed to |
Numeric AUC value.
assess(), auc()
set.seed(1)
x <- matrix(rnorm(100 * 5), ncol = 5)
y <- c(rep(1, 20), rep(0, 80))
fit <- xplus(x, y, max_iter = 5)
get_auc(fit, newx = x, newy = y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.