Skip to content

Commit a0d68d1

Browse files
committed
using the numpy_rng instance where applicable
1 parent d0474ed commit a0d68d1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pymc/tests/distributions/test_timeseries.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -856,7 +856,7 @@ def sde_fn(x, k, d, s):
856856
"y", dt=0.02, sde_fn=sde_fn, sde_pars=sde_pars, init_dist=init_dist, **kwargs
857857
)
858858

859-
y_eval = draw(y, draws=2, random_seed=RANDOM_SEED)
859+
y_eval = draw(y, draws=2, random_seed=numpy_rng)
860860
assert y_eval[0].shape == (batch_size, steps)
861861
assert np.any(~np.isclose(y_eval[0], y_eval[1]))
862862

@@ -945,9 +945,9 @@ def _gen_sde_path(sde, pars, dt, n, x0):
945945
Normal("zh", mu=xh, sigma=sig2, observed=z)
946946
# invert
947947
with model:
948-
trace = sample(chains=1, random_seed=RANDOM_SEED)
948+
trace = sample(chains=1, random_seed=numpy_rng)
949949

950-
ppc = sample_posterior_predictive(trace, model=model, random_seed=RANDOM_SEED)
950+
ppc = sample_posterior_predictive(trace, model=model, random_seed=numpy_rng)
951951

952952
p95 = [2.5, 97.5]
953953
lo, hi = np.percentile(trace.posterior["lamh"], p95, axis=[0, 1])

0 commit comments

Comments
 (0)