Skip to content

Commit 16198fa

Browse files
committed
Revert ESS test (and add some numerical accuracy checks)
1 parent 2a585fc commit 16198fa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/mcmc/ess.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,9 @@ using Turing
118118
chn1 = sample(StableRNG(23), xy(), spl_xy, num_samples)
119119
chn2 = sample(StableRNG(23), x12(), spl_x, num_samples)
120120

121-
@test mean(chn1[:z]) mean(chn2[:z]) atol = 0.05
122-
@test mean(chn1[:x]) mean(chn2["x[1]"]) atol = 0.05
123-
@test mean(chn1[:y]) mean(chn2["x[2]"]) atol = 0.05
121+
@test chn1.value chn2.value
122+
@test mean(chn1[:z]) mean(Beta(2.0, 2.0)) atol = 0.05
123+
@test mean(chn1[:y]) -3.0 atol = 0.05
124124
end
125125
end
126126

0 commit comments

Comments
 (0)