Skip to contents

model_categorical_elastic_net

Usage

model_categorical_elastic_net(x, y, alpha_list = seq(1e-04, 0.9999, 1e-04))

Arguments

x

features/predictors used in prediction of outcome

y

categorical outcome to predict

alpha_list

vector of alpha values to cross-validate

Value

elastic net results

Examples

if (FALSE) { # \dontrun{
x <- iris[, c("Sepal.Length", "Sepal.Width", "Petal.Length", "Petal.Width")]
y <- iris$Species
model_categorical_elastic_net(x, y, alpha_list = c(0.25, 0.5, 0.75))
} # }