-
Notifications
You must be signed in to change notification settings - Fork 111
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
Error using an old tidymodels workflow. #1401
Comments
Hello @reisner 👋 Would you be able to provide a little more information.
|
I dont think this is a recent issue. It's more about trying to load a legacy model with newer versions of the packages. I'm assuming this isnt something you'll be supporting forever, but i was hoping for some guidance on how I can convert the old recipe into new package format. Here is the relevant part of the traceback:
|
I'm sorry, i'm not able to find the cause of this issue with the current information. Ideally old objects should work, but without a reprex, or a specific version that breaks things, it can be hard to figure out what is wrong. |
Thanks for looking into this, @EmilHvitfeldt ! If you think this is something tidymodels should support, I can put together a better reprex for you. Since I still have the docker container for the old version, I can generate a model I can share that fails in the new versions. Let me know if you think it's worth looking into 😄 |
That would be great! Thank you! |
OK, so I've created a reprex. There are two steps:
For step 1 above, here is the environment information:
Here is the code used to run Step 1. You do not need to run this, since I've attached the file that is generated by the code. I'm only putting it here for reference.
For step 2 above, here is my environment information:
And finally, here is the code for running step 2, where I'm encountering 2 issues:
I've been able to address "Issue 1" in that example, and perhaps parsnip could handle this internally? Maybe with a warning? However, I'm not sure what to do with "Issue 2" in that example. When I try running
Thanks so much for your help! Let me know if I can do anything else to help. |
Perhaps related to either tidyverse/dplyr#1341 or tidyverse/dplyr#1405? |
Hi there,
I'm trying to use a model and recipe that was saved in 2018, and use them with updated packages.
The original model was saved with:
parsnip v0.0.1
recipes v0.1.4
I'm trying to use it with updated packages:
parsnip v1.2.1
recipes v1.1.0
The original model was trained with svm_poly / ksvm.
I've been able to get the model to work (by setting
model$elapsed[["elapsed"]] = 1
).However, I'm trying to get the old recipe to work but am hitting this error:
Is there some way I can fix the recipe to work with new package versions? Or is there a way to extract the recipe components and create an updated recipe object? Unfortunately I dont have access to the original training data.
Thanks!
The text was updated successfully, but these errors were encountered: