View source: R/dCVnet_utilities.R
extract_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 tries to extract the value of alpha used to fit a glmnet object - this is not always possible (e.g. if alpha was set by a named variable no-longer in the environment)
extract_glmnet_alpha(mod)
mod |
a |
Note: dCVnet will quietly extend the glmnet models it fits to include
additional information. This information includes the alpha value
(see set_glmnet_alpha
). This dCVnet specified
alpha value will be extracted with priority over alpha values implied
in the model without checking.
The dCVnet extension of the (cv.)glmnet S3 class is very basic.
set_glmnet_alpha
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.