Description Usage Arguments Value
Fit a penalized regression model. See ??glmnet::glmnet for more details
1 2 | fit_glmnet(st, model_name = "pen", fold_col = NULL, fold_id = NULL,
return_model_obj = F)
|
st |
stacker governor. Stacking governer object with a penalized model initialized |
model_name |
character vector. Name of the model to be run |
fold_col |
character vector. Denotes the name of the column designating the fold for crossval |
fold_id |
Numeric. Designates the value in fold col that should be held out |
return_model_obj |
logical. Denotes whether the function should return the earth object or just predictions. |
List object with a data.table of predictions. If return_model_obj==T, the gam command and model object are returned as well
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.