hddm-devs / kabuki

Kabuki is a Python toolbox that allows easy creation of hierarchical Bayesian models for the cognitive sciences.
Other
68 stars 33 forks source link

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

Open kaylee-null opened 4 years ago

kaylee-null commented 4 years ago

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 commented 4 years ago

This is odd, what's your pymc version?

kaylee-null commented 4 years ago

pymc is version 2.3.7

twiecki commented 4 years ago

Very weird, did you install with conda?

On Wed, Apr 29, 2020 at 3:16 PM nullk13 notifications@github.com wrote:

pymc is version 2.3.7

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/hddm-devs/kabuki/issues/37#issuecomment-621193100, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFETGBSLLBVBQIBAL2L7HDRPASBFANCNFSM4MTKGR2Q .