-
Notifications
You must be signed in to change notification settings - Fork 105
Closed
Description
Right now, if a modeling function using glmnet gets a specific penalty value, the model cannot make predictions on any other values. If no value is given, the model can predict on anything but there is no default value to be used with predict().
I propose doing what caret does:
- if a penalty value is given, save it but do not pass that value to the
lambdaargument toglmnet. - attach the supplied penalty value to the the
glmnetfit object. - when using
predict(), use the value attached to theglmnetobject.
It is suboptimal to modify the underlying object but that would enable use to have the best of both worlds; predict() works as expected (and without error) and multi_predict() can also be used.
jaredlander and mdancho84
Metadata
Metadata
Assignees
Labels
No labels