Skip to content

Commit

Permalink
Fix stability of test.
Browse files Browse the repository at this point in the history
  • Loading branch information
limarta committed Apr 22, 2024
1 parent f9012e3 commit 67eeed0
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 67eeed0

Please sign in to comment.