Skip to content

Commit ac2b82e

Browse files
nikisixntomasino
and
ntomasino
authored
update density dist docstring to v4 API (#5523)
Co-authored-by: ntomasino <nick.w.tomasino@gmail.com>
1 parent 4dade6d commit ac2b82e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pymc/distributions/distribution.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -803,8 +803,8 @@ def random(mu, rng=None, size=None):
803803
observed=np.random.randn(100, 3),
804804
size=(100, 3),
805805
)
806-
prior = pm.sample_prior_predictive(10)['density_dist']
807-
assert prior.shape == (10, 100, 3)
806+
prior = pm.sample_prior_predictive(10).prior_predictive['density_dist']
807+
assert prior.shape == (1, 10, 100, 3)
808808
809809
"""
810810

0 commit comments

Comments
 (0)