Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to handle tuning with glmnet #139

Open
dajmcdon opened this issue Oct 14, 2022 · 0 comments
Open

How to handle tuning with glmnet #139

dajmcdon opened this issue Oct 14, 2022 · 0 comments
Labels
P0 do this immediately

Comments

@dajmcdon
Copy link
Contributor

dajmcdon commented Oct 14, 2022

To use tune() in {tidymodels}, you have to supply potential values of lambda. The way cv.glmnet() works is to first call glmnet() on the whole data, then do the splits using the sequence from the full fit.

So the proper way to do this with {tidymodels} is simply to mimic that: fit all training data, then pass the path along.

We should incorporate this into the vignette in #105 and #131.

@dajmcdon dajmcdon added the P0 do this immediately label Oct 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P0 do this immediately
Projects
None yet
Development

No branches or pull requests

1 participant