Description Format Construction References See Also Examples
Generalized linear models with elastic net regularization.
Calls glmnet::cv.glmnet()
from package glmnet.
R6::R6Class()
inheriting from LearnerSurv.
1 2 3 | LearnerSurvGlmnet$new()
mlr_learners$get("surv.glmnet")
lrn("surv.glmnet")
|
Jerome Friedman, Trevor Hastie, Robert Tibshirani (2010). Regularization Paths for Generalized Linear Models via Coordinate Descent. Journal of Statistical Software, 33(1), 1-22. doi: 10.18637/jss.v033.i01.
Dictionary of Learners: mlr3::mlr_learners
1 2 3 4 5 | library(mlr3)
task = tgen("simsurv")$generate(200)
learner = lrn("surv.glmnet")
resampling = rsmp("cv", folds = 3)
resample(task, learner, resampling)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.