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

Multi predict? #4

Open
DavisVaughan opened this issue Nov 11, 2019 · 1 comment
Open

Multi predict? #4

DavisVaughan opened this issue Nov 11, 2019 · 1 comment
Labels
feature a feature request or enhancement

Comments

@DavisVaughan
Copy link
Member

I don't think it will immediately be required by tune but would still be useful

@DavisVaughan DavisVaughan added the feature a feature request or enhancement label Dec 4, 2019
@jaredlander
Copy link
Collaborator

Just experiencing this. I built a glmnet model using {workflows} and multi_predict() does not exist for the workflow object. Though it does exist for the fitted model stored inside the workflow object.

rec <- recipe(y ~ x, data) %>%
    step_(...)
lm_spec <- linear_reg(mode='regression', mixture=1) %>% 
    set_engine('glmnet')

flow <- workflow() %>% 
    add_recipe(rec) %>% 
    add_model(lm_spec)

mod <- flow %>% fit(data=data)

has_multi_predict(mod)
[1] FALSE
has_multi_predict(mod$fit$fit)
[1] TRUE

So I am mapping over different values of lambda rather than calling multi_predict().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature a feature request or enhancement
Projects
None yet
Development

No branches or pull requests

2 participants