-
Notifications
You must be signed in to change notification settings - Fork 244
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
Cannot save/load model #1457
Comments
Is there an issue with the save and load methods? That is the intended io You will have to use cloudpickle due to local functions as an alternative |
I think we can close the issue. I tried with the default save and load methods, and they worked fine. |
Sounds good @kb-open If you run into any issues, feel free to open another issue. |
The
|
My code:
And |
So you are running the notebook? Or do you have a different configuration than the notebook? |
Same configuration but I tried to save and load. |
Which version(s) |
0.11.0 |
Just to give a little more info, in case it helps solving the problem. As soon as I add One thing I notice is that, with causal model, |
Thanks for the context. What are the values you are passing to dag? |
causal_dag = """digraph {x1 -> y; |
Can you load the nc file directly with arviz and share what are the attrs of InferenceData and the values of fit_data Dataset group |
Code used:
Output:
|
Tagging @wd60622 just in case my comment above got missed, since there has been no update. |
I am unable to reproduce. Can you make a small reproducible example |
example.zip |
Using version 0.11.0. Trying to save the model using
pickle
, but it gives the following error:PicklingError: Can't pickle <function create_dim_handler.<locals>.func at 0x00000202218598A0>: it's not found as pymc_marketing.prior.create_dim_handler.<locals>.func
I've tried
joblib
andpickle
. Both result in this error.The text was updated successfully, but these errors were encountered: