glmnet_coef_plot: Create Lambda chart for glmnet object

Description Usage Arguments Value Examples

View source: R/glmnet_coef_plot.R

Description

Create Lambda chart for glmnet object

Usage

1

Arguments

fit

parsnip fit object

Value

ggplot2 object

Examples

1
2
3
4
5
6
7
8
9
library(parsnip)
library(glmnet)
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)

EmilHvitfeldt/horus documentation built on June 12, 2021, 7 p.m.