Skip to content

Commit ae9370b

Browse files
committed
Bump AdvancedPS test requirement to 0.6.1
1 parent 8bf98e1 commit ae9370b

File tree

3 files changed

+3
-13
lines changed

3 files changed

+3
-13
lines changed

test/Project.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f"
4242
AbstractMCMC = "5"
4343
AbstractPPL = "0.9, 0.10"
4444
AdvancedMH = "0.6, 0.7, 0.8"
45-
AdvancedPS = "0.6.0"
45+
AdvancedPS = "0.6.1"
4646
AdvancedVI = "0.2"
4747
Aqua = "0.8"
4848
BangBang = "0.4"

test/mcmc/ess.jl

+1-5
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,7 @@ using Turing
7171
@varname(mu2) => ESS(),
7272
)
7373
chain = sample(StableRNG(seed), MoGtest_default, alg, 2000)
74-
# (penelopeysm) Note that the tolerance for x86 needs to be larger
75-
# because CSMC (i.e. PG) is not reproducible across architectures.
76-
# See https://github.com/TuringLang/Turing.jl/issues/2446.
77-
atol = Sys.ARCH == :i686 ? 0.12 : 0.1
78-
check_MoGtest_default(chain; atol=atol)
74+
check_MoGtest_default(chain; atol=0.1)
7975
end
8076

8177
@testset "TestModels" begin

test/mcmc/gibbs.jl

+1-7
Original file line numberDiff line numberDiff line change
@@ -476,13 +476,7 @@ end
476476
# the posterior is analytically known? Doing 10_000 samples to run the test suite
477477
# is not ideal
478478
# Issue ref: https://github.com/TuringLang/Turing.jl/issues/2402
479-
480-
# (penelopeysm) Note also the larger atol on x86 runners. This is
481-
# needed because PG is not fully reproducible across architectures,
482-
# even when seeded as above. See
483-
# https://github.com/TuringLang/Turing.jl/issues/2446
484-
mean_atol = Sys.ARCH == :i686 ? 1.3 : 0.8
485-
@test isapprox(mean(num_ms), 8.6087; atol=mean_atol)
479+
@test isapprox(mean(num_ms), 8.6087; atol=0.8)
486480
@test isapprox(std(num_ms), 1.8865; atol=0.02)
487481
end
488482

0 commit comments

Comments
 (0)