Nothing
## ----include = FALSE----------------------------------------------------------
knitr::opts_chunk$set(collapse = TRUE, comment = "#>")
## ----basic-workflow-----------------------------------------------------------
library(xplus)
set.seed(1)
x <- matrix(rnorm(200 * 10), ncol = 10)
y <- c(rep(1, 40), rep(0, 160))
fit <- xplus(x, y, max_iter = 20, seed = 42)
summary(fit)
fit$stop_reason
fit$fallback_used
head(predict(fit, x, type = "response"))
levels(predict(fit, x, type = "class"))
## ----assessment---------------------------------------------------------------
metrics <- assess(fit, newx = x, newy = y, s = "lambda.1se")
metrics$auc
get_auc(fit, newx = x, newy = y, s = "lambda.1se")
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.