Generalized linear models with elastic net regularization. Calls glmnet::cv.glmnet() from package glmnet.

Dictionary

This Learner can be instantiated via the dictionary mlr_learners or with the associated sugar function lrn():

mlr_learners$get("classif.cv_glmnet")
lrn("classif.cv_glmnet")

References

Friedman J, Hastie T, Tibshirani R (2010). “Regularization Paths for Generalized Linear Models via Coordinate Descent.” Journal of Statistical Software, 33(1), 1--22. doi: 10.18637/jss.v033.i01 .

See also

Super classes

mlr3::Learner -> mlr3::LearnerClassif -> LearnerClassifCVGlmnet

Methods

Public methods

Inherited methods

Method new()

Creates a new instance of this R6 class.

Usage

LearnerClassifCVGlmnet$new()


Method clone()

The objects of this class are cloneable with this method.

Usage

LearnerClassifCVGlmnet$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

Examples

if (requireNamespace("glmnet")) { learner = mlr3::lrn("classif.cv_glmnet") print(learner) # available parameters: learner$param_set$ids() }
#> Loading required namespace: glmnet
#> <LearnerClassifCVGlmnet:classif.cv_glmnet> #> * Model: - #> * Parameters: list() #> * Packages: glmnet #> * Predict Type: response #> * Feature types: logical, integer, numeric #> * Properties: multiclass, twoclass, weights
#> [1] "alpha" "nfolds" "type.measure" "s" #> [5] "lambda.min.ratio" "lambda" "standardize" "intercept" #> [9] "thresh" "dfmax" "pmax" "exclude" #> [13] "penalty.factor" "lower.limits" "upper.limits" "maxit" #> [17] "type.logistic" "type.multinomial" "keep" "parallel" #> [21] "trace.it" "foldid" "alignment" "grouped" #> [25] "offset" "gamma" "relax" "fdev" #> [29] "devmax" "eps" "big" "mnlam" #> [33] "pmin" "exmx" "prec" "mxit" #> [37] "newoffset" "predict.gamma"