Skip to content

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

@kaylee-null

Description

@kaylee-null

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'**

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions