-
Notifications
You must be signed in to change notification settings - Fork 7
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
InferenceData (.nc file) not generated for HDDMRegression with stimulus coding #18
Comments
Thank you for your feedback. After testing, we successfully replicated the issue you reported. Upon investigation, we found that the problem stems from an update in HDDM. Specifically, this issue does not occur when using HDDM version 0.8.0. Let me first share a solution, followed by an explanation of the issue's origin. Solution:You can pull a Docker image with HDDM version 0.8.0 to fit models using Here are my test results with version 0.8.0 and it shows that it works. Source of the Issue:The issue arises from the following line in the HDDM repository: Here, the We will report this issue to the official HDDM maintainers. However, updates may not be guaranteed as they seem to be focusing on resolving these problems in HSSM. |
Thanks for your reply. I changed the HDDM version to 0.8.0 and the .nc file is generated for the tutorial data. However, I still have issues with generating the .nc file for my own data when using HDDMStimCoding. Am I doing something wrong in defining my model or sampling? This is my model:
And this is the error I get:
I am using these versions of the packages: |
I didn't reproduce the error and everything works fine when I use real data. I guess it has something to do with the data? |
Can you tell me what the "grouping" in the error is referring to? |
This error source was not caught by us. If you want to know where this error comes from, you can try to run ppc alone, and run model.gen_ppc (n_ppc = 500) or model.gen_ppc (n_ppc = 500, parallel = False) after fitting the model. Then you can see the generated posterior prediction data through model.ppc. If there is no problem, you can try model.to_infdata (ppc = True) again to see if there is a problem? from kabuki.analyze import post_pred_gen
ppc = post_pred_gen(model, samples=500, parallel=False) |
I am using Docker version 4.35.1 (173168) for Mac (Sequoia 15.1). The Kabuki version is 0.6.5RC4 and the HDDM version is 1.0.1RC.
I am trying to run your tutorial “HDDM_Regression_Stimcoding” in the "OfficialTutorials" folder in Jupyter notebook with the addition of saving the InferenceData to be able to do posterior predictive check later. Line 16 of the tutorial is changed to:
However, the .nc file cannot be generated due to this error:
The text was updated successfully, but these errors were encountered: