View source: R/dCVnet_utilities.R
set_glmnet_alpha | R Documentation |
glmnet model objects do not explicitly include the alpha value which was
used when the model was fit. This utility function extends the glmnet S3
class by adding a slot for 'alpha'. This can be manually specified (setalpha)
or extracted from the model object (extract_glmnet_alpha
).
set_glmnet_alpha(mod, setalpha = NULL)
mod |
a |
setalpha |
Specify an alpha value |
Note: This extension of the (cv.)glmnet S3 class is very basic.
extract_glmnet_alpha
, glmnet
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.