Skip to content

Commit

Permalink
removed more progress logging
Browse files Browse the repository at this point in the history
  • Loading branch information
torfjelde committed Jun 5, 2024
1 parent 80bb07b commit fa865c8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/emcee.jl
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
sampler = Ensemble(1_000, StretchProposal([InverseGamma(2, 3), Normal(0, 1)]))

chain = sample(model, sampler, 1_000;
param_names = ["s", "m"], chain_type = Chains)
param_names = ["s", "m"], chain_type = Chains, progress=false)
@test chain isa Chains
@test range(chain) == 1:1_000
@test mean(chain["s"]) 49/24 atol=0.1
Expand All @@ -33,6 +33,7 @@
chain_type = Chains,
discard_initial=25,
thinning=4,
progress=false
)
@test chain2 isa Chains
@test range(chain2) == range(26; step=4, length=1_000)
Expand All @@ -59,7 +60,7 @@
Random.seed!(100)
sampler = Ensemble(1_000, StretchProposal(MvNormal(zeros(2), I)))
chain = sample(model, sampler, 1_000;
param_names = ["logs", "m"], chain_type = Chains)
param_names = ["logs", "m"], chain_type = Chains, progress=false)
@test chain isa Chains
@test range(chain) == 1:1_000
@test mean(exp, chain["logs"]) 49/24 atol=0.1
Expand All @@ -73,6 +74,7 @@
chain_type = Chains,
discard_initial=25,
thinning=4,
progress=false
)
@test chain2 isa Chains
@test range(chain2) == range(26; step=4, length=1_000)
Expand Down

0 comments on commit fa865c8

Please sign in to comment.