-
Notifications
You must be signed in to change notification settings - Fork 33
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
I encountered an error while replicating the dismod_MR tool #36
Comments
I'm sorry to hear that you are having trouble using the dismod_mr tool. I can't tell what is going wrong from this screenshot alone. Can you produce a "minimal complete verifiable example" of the issue you are having? https://stackoverflow.com/help/minimal-reproducible-example |
Thanks for your prompt reply, maybe you can try running this ipynb file with your pd_sim_data folder? |
I had a little trouble getting the data to load (I had to change the directory to get |
I have not had a chance to look at this, but I thought I’d send a quick reply to say that I received it.
|
Hello, I think I have the same issue when running the example code recently. The code was copied from the page "A motivating example: descriptive epidemiological meta-regression of Parkinson's Disease".
And below error occurs when running the asr function. ` IndexError: list index out of range During handling of the above exception, another exception occurred: TypeError Traceback (most recent call last) File c:\ProgramData\miniconda3\lib\site-packages\pymc\model.py:202, in ContextMeta.get_context(cls, error_if_none) TypeError: No <class 'pymc.model.Model'> on context stack TypeError: No model on context stack, which is needed to instantiate distributions. Add variable inside a 'with model:' block, or use the '.dist' syntax for a standalone distribution. |
Sorry for the challenge of getting it to work… I believe that this issue you are running into is because dismod_mr is based on an older version of pymc. Please see if uninstalling your pymc and installing an older version makes the example work for you:
|
Note also that the best python version for this is 3.6, as pymc==2.3.8 has some issues with the most current version of python (3.11). My apologies again for the challenge of getting this to work! |
@aflaxman Many thanks for your support. It works fine in the local conda environment. |
Also update docs to correspond; see issue #36 for details.
Hello, I hope to get your help. The error is as follows: |
I bet we are getting errors with modern versions of networkx now, too :( Can you check if your networkx version is 2.3? |
Thanks. It works successfully now. Mybe there was some error when l used 'model.keep()' command. |
Yay! Mysterious, but I'll consider it a closed case. Please reopen if you have more trouble. |
I hope to get your help. The error is as follows:
The text was updated successfully, but these errors were encountered: