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 eb4c56c commit c64ff91Copy full SHA for c64ff91
tests/test_step.py
@@ -10,11 +10,9 @@ def check_stat(name, trace, var, stat, value, bound):
10
11
def test_step_continuous():
12
start, model, (mu, C) = mv_simple()
13
- H = np.linalg.inv(C)
14
-
15
16
- hmc = pm.HamiltonianMC(model, model.vars, H)
17
- mh = pm.Metropolis(model, model.vars , C, scaling = .25)
+ hmc = pm.HamiltonianMC(model, model.vars, C, is_cov = True)
+ mh = pm.Metropolis(model, model.vars , C, is_cov = True, scaling = 2)
18
compound = pm.CompoundStep([hmc, mh])
19
20
steps = [mh, hmc, compound]
@@ -24,6 +22,8 @@ def test_step_continuous():
24
22
('x', np.std , unc, unc/10.)]
25
23
26
for st in steps:
+ np.random.seed(1)
+ h = sample(model, 8000, st, start)
27
for (var, stat, val, bound) in check:
28
np.random.seed(1)
29
h = sample(model, 8000, st, start)
0 commit comments