Skip to content

Commit

Permalink
Discard initial samples
Browse files Browse the repository at this point in the history
  • Loading branch information
devmotion committed Jun 1, 2020
1 parent d0ec043 commit 73be302
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/sampler.jl
Expand Up @@ -85,7 +85,7 @@ end
# For other adapatation methods that are able to adpat the step size, we use `find_good_stepsize`.
τ_used = adaptorsym == :MassMatrixAdaptorOnly ? τ : reconstruct(τ, integrator=reconstruct(lf, ϵ=find_good_stepsize(h, θ_init)))
samples, stats = sample(h, τ_used , θ_init, n_samples, adaptor, n_adapts; verbose=false, progress=PROGRESS)
@test mean(samples) zeros(D) atol=RNDATOL
@test mean(samples[(n_adapts+1):end]) zeros(D) atol=RNDATOL
test_stats(τ_used, stats, n_adapts)
end
end
Expand Down

0 comments on commit 73be302

Please sign in to comment.