Skip to content

Commit 2a30d42

Browse files
committed
Fix mistyped test case.
1 parent ab27f15 commit 2a30d42

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/inference/particle_filter.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ end
3131
# test the hmm_forward_alg on a hand-calculated example
3232
prior = [0.4, 0.6]
3333
emission_dists = [0.1 0.9; 0.7 0.3]'
34-
transition_dists = [0.5 0.5; 0.2 0.8']
34+
transition_dists = [0.5 0.5; 0.2 0.8]'
3535
obs = [2, 1]
3636
expected_marg_lik = 0.
3737
# z = [1, 1]
@@ -114,7 +114,7 @@ end
114114

115115
# do particle filter steps
116116

117-
@gen function step_proposal(prev_trace, T::Int, x::Float64)
117+
@gen function step_proposal(prev_trace, T::Int, x::Int)
118118
@assert T > 1
119119
choices = get_choices(prev_trace)
120120
if T > 2

0 commit comments

Comments
 (0)