cmu-delphi / cmu-delphi/epipredict

How to handle tuning with `glmnet`

Open
#139 0 comments 0 reactions 0 assignees View on GitHub
P0
Dominant language
R
Stars
18
Forks
13
Avg merge
21d 58m
Merged PRs (30d)
1

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.