We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The shape of pm.sample_posterior_predictive is wrong. For example, the code
data = np.random.randn(100) with pm.Model() as model: mu = pm.Normal('mu', mu=0, sd=1) sd = pm.HalfNormal('sd', sd=1) obs = pm.Normal('obs', mu=mu, sd=sd, observed=data) trace = pm.sample() with model: post_pred = pm.sample_posterior_predictive(trace, samples=500, size=5) post_pred['obs'].shape
produces
(500, 5, 100)
instead of the expected (500, 5)
The text was updated successfully, but these errors were encountered:
You probably meant to open this here instead: https://github.com/pymc-devs/pymc3
Sorry, something went wrong.
No branches or pull requests
The shape of pm.sample_posterior_predictive is wrong.
For example, the code
produces
instead of the expected (500, 5)
The text was updated successfully, but these errors were encountered: