Skip to content

Commit 659b963

Browse files
committed
less iterations. hiding prints
1 parent e1b3bcb commit 659b963

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/probprog/linear_regression.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ function my_inference_program(xs, ys, num_iters)
4545
trace, _ = ProbProg.metropolis_hastings(trace, ProbProg.select(:slope))
4646
trace, _ = ProbProg.metropolis_hastings(trace, ProbProg.select(:intercept))
4747
choices = ProbProg.get_choices(trace)
48-
@show i, choices[:slope], choices[:intercept]
48+
# @show i, choices[:slope], choices[:intercept]
4949
end
5050

5151
choices = ProbProg.get_choices(trace)
@@ -71,8 +71,8 @@ end
7171
xs = [1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0]
7272
ys = [8.23, 5.87, 3.99, 2.59, 0.23, -0.66, -3.53, -6.91, -7.24, -9.90]
7373

74-
slope, intercept = my_inference_program(xs, ys, 1000)
74+
slope, intercept = my_inference_program(xs, ys, 5)
7575

76-
@show slope, intercept
76+
# @show slope, intercept
7777
end
7878
end

0 commit comments

Comments
 (0)