We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a585fc commit 16198faCopy full SHA for 16198fa
test/mcmc/ess.jl
@@ -118,9 +118,9 @@ using Turing
118
chn1 = sample(StableRNG(23), xy(), spl_xy, num_samples)
119
chn2 = sample(StableRNG(23), x12(), spl_x, num_samples)
120
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
+ @test chn1.value ≈ chn2.value
+ @test mean(chn1[:z]) ≈ mean(Beta(2.0, 2.0)) atol = 0.05
+ @test mean(chn1[:y]) ≈ -3.0 atol = 0.05
124
end
125
126
0 commit comments