Skip to content

Commit c66587c

Browse files
refactor: changed distributions in test case
1 parent 8433ff6 commit c66587c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/test_inla.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,13 @@ def test_non_gaussian_latent(rng):
3232
"""
3333
n = 10000
3434

35-
mu_mu = 0
3635
mu_true = rng.random()
3736
tau = 1
3837
y_obs = rng.normal(loc=mu_true, scale=1 / tau, size=n)
3938

4039
with pm.Model() as model:
41-
mu = pm.Normal("mu", mu=mu_mu, tau=tau)
42-
x = pm.Normal("x", mu=mu, tau=tau)
40+
lam = pm.HalfNormal("lam", tau=tau)
41+
x = pm.Exponential("x", lam=lam)
4342
y = pm.Normal("y", mu=x, tau=tau, observed=y_obs)
4443

4544
with pytest.raises(ValueError):

0 commit comments

Comments
 (0)