-
-
Notifications
You must be signed in to change notification settings - Fork 273
Replacing PyMC3 plots w/ Arviz plots & sigma Param change [Part 1] #27
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import numpy as np | ||
import theano.tensor as tt | ||
|
||
import arviz as az | ||
from numpy.random import multivariate_normal | ||
|
||
import pymc3 as pm | ||
|
@@ -53,7 +53,7 @@ def run(n=1000): | |
n = 50 | ||
with model: | ||
trace = pm.sample(n) | ||
pm.traceplot( | ||
az.plot_trace( | ||
trace, varnames=["mu", "r"], lines={"mu": mu_r, "r": corr_r[np.triu_indices(n_var, k=1)]} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I am quite sure arviz does not accept There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah, correct! Thanks for that. I updated to arviz
(This error looks related arviz-devs/arviz#988) Any thoughts why this happened? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think I found out why now. It's due to the az.plot_trace(
trace, varnames=["mu", "r"], lines={"mu": mu_r, "r": corr_r[np.triu_indices(n_var, k=1)]}
... I removed it to make the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Try
|
||
) | ||
|
||
|
Uh oh!
There was an error while loading. Please reload this page.