Skip to content

Commit

Permalink
fix flaky test posterior_to_prior (#524)
Browse files Browse the repository at this point in the history
* fix flaky test

* add more steps
  • Loading branch information
aloctavodia authored Aug 16, 2024
1 parent 5a44497 commit 041ee09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions preliz/tests/test_posterior_to_prior.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
a = pm.Normal("a", mu=0, sigma=1)
b = pm.HalfNormal("b", sigma=1)
y = pm.Normal("y", mu=a, sigma=b, observed=data)
idata = pm.sample(tune=200, draws=200)
idata = pm.sample(tune=200, draws=500, random_seed=2945)


def test_p2p_pymc():
Expand All @@ -32,7 +32,7 @@ def test_p2p_pymc():
)
bmb_prior = {"Intercept": bmb.Prior("HalfStudentT", nu=1)}
bmb_model = bmb.Model("y ~ x + x1", bmb_data, priors=bmb_prior)
bmb_idata = bmb_model.fit(tune=200, draws=200)
bmb_idata = bmb_model.fit(tune=200, draws=200, random_seed=2945)


def test_p2p_bambi():
Expand Down

0 comments on commit 041ee09

Please sign in to comment.