Skip to content

Commit 1a2503f

Browse files
committed
add factor potential example
1 parent 122d0f4 commit 1a2503f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

examples/factor_potential.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
x = Normal('x', 1,1)
55
model.AddPotential(-x**2)
66

7-
8-
h = find_hessian()
9-
step = Metropolis(h)
10-
trace = sample(3000, step)
7+
start = model.test_point
8+
h = find_hessian(start)
9+
step = Metropolis(model.vars, h)
10+
trace = sample(3000, step, start)

0 commit comments

Comments
 (0)