We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9fb860e commit 68b87eeCopy full SHA for 68b87ee
tests/test_inla.py
@@ -32,14 +32,13 @@ def test_non_gaussian_latent(rng):
32
"""
33
n = 10000
34
35
- mu_mu = 0
36
mu_true = rng.random()
37
tau = 1
38
y_obs = rng.normal(loc=mu_true, scale=1 / tau, size=n)
39
40
with pm.Model() as model:
41
- mu = pm.Normal("mu", mu=mu_mu, tau=tau)
42
- x = pm.Normal("x", mu=mu, tau=tau)
+ lam = pm.HalfNormal("lam", tau=tau)
+ x = pm.Exponential("x", lam=lam)
43
y = pm.Normal("y", mu=x, tau=tau, observed=y_obs)
44
45
with pytest.raises(ValueError):
0 commit comments