Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

tidy._elnet

tidy methods for glmnet models


Description

tidy() methods for the various glmnet models that return the coefficients for the specific penalty value used by the parsnip model fit.

Usage

## S3 method for class ''_elnet''
tidy(x, penalty = NULL, ...)

## S3 method for class ''_lognet''
tidy(x, penalty = NULL, ...)

## S3 method for class ''_multnet''
tidy(x, penalty = NULL, ...)

## S3 method for class ''_fishnet''
tidy(x, penalty = NULL, ...)

Arguments

x

A fitted parsnip model that used the glmnet engine.

penalty

A single numeric value. If none is given, the value specified in the model specification is used.

...

Not used

Value

A tibble with columns term, estimate, and penalty. When a multinomial mode is used, an additional class column is included.


parsnip

A Common API to Modeling and Analysis Functions

v0.1.5
GPL-2
Authors
Max Kuhn [aut, cre], Davis Vaughan [aut], RStudio [cph]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.