Skip to content

Commit

Permalink
Merge pull request #529 from probcomp/ian/pf_test
Browse files Browse the repository at this point in the history
Fix stability of test.
  • Loading branch information
ztangent authored Apr 23, 2024
2 parents f9012e3 + 67eeed0 commit 90c6a5d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/inference/particle_filter.jl
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ end
@testset "custom proposal" begin

Random.seed!(1)
num_particles = 10000
ess_threshold = 10000 # make sure we exercise resampling
num_particles = 20000
ess_threshold = 20000 # make sure we exercise resampling

# initialize particle filter

Expand Down Expand Up @@ -146,8 +146,8 @@ end
@testset "default proposal" begin

Random.seed!(1)
num_particles = 10000
ess_threshold = 10000 # make sure we exercise resampling
num_particles = 20000
ess_threshold = 20000 # make sure we exercise resampling

# initialize the particle filter
init_observations = choicemap((:x_init, obs_x[1]))
Expand Down

0 comments on commit 90c6a5d

Please sign in to comment.