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

The default for hyperparameter family is changed to "gaussian".

Dictionary

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

mlr_learners$get("regr.glmnet")
lrn("regr.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::LearnerRegr -> LearnerRegrGlmnet

Methods

Public methods

Inherited methods

Method new()

Creates a new instance of this R6 class.

Usage

LearnerRegrGlmnet$new()


Method clone()

The objects of this class are cloneable with this method.

Usage

LearnerRegrGlmnet$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

Examples

learner = mlr3::lrn("regr.glmnet") print(learner)
#> <LearnerRegrGlmnet:regr.glmnet> #> * Model: - #> * Parameters: family=gaussian #> * Packages: glmnet #> * Predict Type: response #> * Feature types: logical, integer, numeric #> * Properties: weights
# available parameters: learner$param_set$ids()
#> [1] "family" "offset" "alpha" "nfolds" #> [5] "type.measure" "s" "nlambda" "lambda.min.ratio" #> [9] "lambda" "standardize" "intercept" "thresh" #> [13] "dfmax" "pmax" "exclude" "penalty.factor" #> [17] "lower.limits" "upper.limits" "maxit" "type.gaussian" #> [21] "type.logistic" "type.multinomial" "gamma" "relax" #> [25] "fdev" "devmax" "eps" "big" #> [29] "mnlam" "pmin" "exmx" "prec" #> [33] "mxit"