Skip to content
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

AttributeError: module 'pymc' has no attribute 'diagnostics' #37

Open
kaylee-null opened this issue Apr 29, 2020 · 3 comments
Open

AttributeError: module 'pymc' has no attribute 'diagnostics' #37

kaylee-null opened this issue Apr 29, 2020 · 3 comments

Comments

@kaylee-null
Copy link

kaylee-null commented Apr 29, 2020

Looking for help with this error. This is coming up at the end of my code running.

I think the error stems from the italicized section of the code:

from ipyparallel import Client
v = Client()[0:4]
jobs = v.map(HDDMRun_Dep_z,range(4))
wait_watching_stdout(jobs)
Code = jobs.get()
**# Bring all of the jobs together
comb_models_z = kabuki.utils.concat_models(Code) 
# Test convergence using Rhat
from kabuki.analyze import gelman_rubin
gelman_rubin(Code)
# Print the stats
comb_models_z.print_stats()**

The error:

Traceback (most recent call last):
 
  File "<ipython-input-5-3d910990c922>", line 152, in <module>
    gelman_rubin(Code)
 
  File "/home/.../python3.6/site-packages/kabuki/analyze.py", line 150, in gelman_rubin
    R_hat_dict[name] = pm.diagnostics.gelman_rubin(samples)
 
**AttributeError: module 'pymc' has no attribute 'diagnostics'**
@twiecki
Copy link
Member

twiecki commented Apr 29, 2020

This is odd, what's your pymc version?

@kaylee-null
Copy link
Author

pymc is version 2.3.7

@twiecki
Copy link
Member

twiecki commented Apr 29, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants