Create Lambda chart for glmnet object

glmnet_coef_plot(fit)

Arguments

fit

parsnip fit object

Value

ggplot2 object

Examples

#> Loading required package: Matrix
#> Loaded glmnet 4.1-1
linear_reg_glmnet_spec <- linear_reg(penalty = 0, mixture = 1) %>% set_engine('glmnet') lm_fit <- fit(linear_reg_glmnet_spec, data = mtcars, mpg ~ .) glmnet_coef_plot(lm_fit)