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

model_averaging.ipynb fails on 3.3rc1 #2780

Closed
ColCarroll opened this issue Jan 9, 2018 · 2 comments
Closed

model_averaging.ipynb fails on 3.3rc1 #2780

ColCarroll opened this issue Jan 9, 2018 · 2 comments

Comments

@ColCarroll
Copy link
Member

the cell

traces = [trace_0, trace_1, trace_2]
pm.forestplot(traces);              

fails with

AttributeError                            Traceback (most recent call last)
<ipython-input-6-c37537cb6614> in <module>()
      1 traces = [trace_0, trace_1, trace_2]
----> 2 pm.forestplot(traces);

~/anaconda3/envs/pydata_nyc20173.6/lib/python3.6/site-packages/pymc3/plots/forestplot.py in forestplot(trace_obj, varnames, transform, alpha, quartiles, rhat, main, xtitle, xlim, ylabels, chain_spacing, vline, gs, plot_transformed, plot_kwargs)
    197     interval_plot = None
    198
--> 199     nchains = trace_obj.nchains
    200
    201     if varnames is None:

AttributeError: 'list' object has no attribute 'nchains'
@junpenglao
Copy link
Member

That's weird, forestplot.py was updated in #2736 but the code being called is not the up-to-date one.

@ColCarroll
Copy link
Member Author

shoot -- that stack trace says it is using the wrong conda env. I will double check!

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