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 ab27f15 commit 2a30d42Copy full SHA for 2a30d42
test/inference/particle_filter.jl
@@ -31,7 +31,7 @@ end
31
# test the hmm_forward_alg on a hand-calculated example
32
prior = [0.4, 0.6]
33
emission_dists = [0.1 0.9; 0.7 0.3]'
34
- transition_dists = [0.5 0.5; 0.2 0.8']
+ transition_dists = [0.5 0.5; 0.2 0.8]'
35
obs = [2, 1]
36
expected_marg_lik = 0.
37
# z = [1, 1]
@@ -114,7 +114,7 @@ end
114
115
# do particle filter steps
116
117
- @gen function step_proposal(prev_trace, T::Int, x::Float64)
+ @gen function step_proposal(prev_trace, T::Int, x::Int)
118
@assert T > 1
119
choices = get_choices(prev_trace)
120
if T > 2
0 commit comments