question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Is it intentional to have a different traceplot from pymc3? Each element of an RV with shape > 1 gets a plot in arviz, while they are all the same for pymc3.

Explicitly, with eight schools (I only capture the first few plots from arviz):

J = 8
y = np.array([28,  8, -3,  7, -1,  1, 18, 12])
sigma = np.array([15, 10, 16, 11,  9, 11, 10, 18])

with pm.Model() as hierarchical:
    eta = pm.Normal('eta', 0, 1, shape=J)
    mu = pm.Normal('mu', 0, sd=1e6)
    tau = pm.HalfCauchy('tau', 5)
    theta = pm.Deterministic('theta', mu + tau*eta)
    obs = pm.Normal('obs', theta, sd=sigma, observed=y)
    trace_h = pm.sample(1000)

image

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:13 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
twieckicommented, May 23, 2019

Advocating for returning to the pymc3 way by default. It is much worse UX to take forever and then break, rather than displaying a crowded plot which might trigger a user to look at the docs to find that option.

1reaction
michaelosthegecommented, Apr 24, 2019

One difficulty with combined plots (I prefer them in most cases) is the overlay of the chains on the right. Maybe, they should get alpha=1/ndim or so.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Markov chain traceplots
Draw the traceplot corresponding to one or more Markov chains, providing a visual way to inspect sampling behavior and assess mixing across chains...
Read more >
Customize posterior plot style using plot_posterior
Hi. I have a question regarding the customization of plot_posterior. In case of customizing traceplot, we can make a fig and axes handles...
Read more >
Trace plot (left) and estimated marginal posterior density (right) of...
Download scientific diagram | Trace plot (left) and estimated marginal posterior density ... Posterior means of estimated survival probabilities by parity.
Read more >
JointAI: Joint Analysis and Imputation of Incomplete Data in R
PARITY : Number of times the mother has given birth; binary; 2.4% missing. ... Figure 9: ggplot2 version of the traceplot for model...
Read more >
On the Bayesian Mixture of Generalized Linear Models ...
... at purchasing power parity and the annual household income per capita. ... The MCMC convergence condition can be shown graphically by the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found