-
Notifications
You must be signed in to change notification settings - Fork 199
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
DelayedSaturatedMMM.load() error matching model ID #348
Comments
If you have any parameters defined as lists you should wrap them in numpy arrays. Otherwise we may need to reproducible example to figure it out :) |
Thanks @ricardoV94. The parameters you mention in the model_config? Good catch. If run the model without any changes to However, I just tested using np.array() in the model_config and got an error while calling the
Here's the error I see when I have np.arrays in the model_config dict:
Strangely. I can use an np.array in the Even more strange... after I use the THanks for the response. I'll keep trying a few things. |
Yes I think you can only use array for parameters? @michaelraczycki will perhaps spot the issue more quickly |
Hmm. Sorry I didn't notice this before, but there is this in the
Looks like there is a process to convert the arrays that is only working on the I added the others just now and it is working for me now. I can save and load. The model ID's match. I'm a newb, but this is what I did that is working.
|
This is something that needs to be patched up, I didn't know if in current model definition priors with lists of arguments would be applicable for all variables, so I did only conversions for those that were already implementing list variables. It needs to be addressed in the next minor patch, probably I can get the PR in this week |
Hello everyone,
Perhaps I am doing something wrong here, but I am can't seem to save then load an MMM model. I am testing the MMM functionality in the latest
0.2.0
released last week. Super excited for all the new pieces. Thanks everyone.Tried:
Getting error
I took a look at the mis-matched
model.id != idata.attrs["id"]
which is causing the error. These ID's are indeed different, and I haven't made any changes to the model setup. When I create a new DelayedSaturatedMMM the ID seems to be consistent ate33f4593f13b302a
. When I try to load a saved DelayedSaturatedMMM it seems this intermediate step in theload
function is creating a different ID ofdc3bfba5e3342691
:Thanks again everyone. Let me know if I am missing a step.
The text was updated successfully, but these errors were encountered: