-
Notifications
You must be signed in to change notification settings - Fork 24
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
predict() does not work if fitted workflow object has been saved as rds. #45
Comments
OK I got it. These libraries are loaded automatically in the workflow with the set_engine(). But they are not automatically loaded when calling back predict() later on, hence the error. Maybe, the predict function could call these libraries like the set_engine() do? Thanks again for that awesome set of packages. Still tinkering with it all. |
We'll be fixing that soon: tidymodels/parsnip#308 |
I see. Thanks again for all your work with your team. Phenomenal! |
We can track this with the parsnip issue |
So is |
yes unless it involves a model like keras that stores the data in memory (and not locally in the R object). |
This issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org) and link to this issue. |
I have used this page for help:
https://workflows.tidymodels.org/reference/predict-workflow.html
the workflow is a nlp task using lasso and textrecipes.
I fitted a workflow object using fit(wf, train_data)
Then I use the workflow object with predict(wf, newdata). no error. It works as expected.
If I saved the workflow object using write_rds(). Close the session, clean all objects, restart r.
I read the workflow object using read_rds(wf.rds), then apply predict to that object. It gives me error.
The text was updated successfully, but these errors were encountered: