You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
using Turing, Random
@modelfunctiondynamic_model_for_ess()
b ~Bernoulli()
x_length = b ?1:2
x =Vector{Float64}(undef, x_length)
for i in1:x_length
x[i] ~Normal(i, 1.0)
endend
model =dynamic_model_for_ess()
mean(sample(Xoshiro(468), model, Gibbs(:b=>PG(10), :x=>ESS()), 2000))
Description
Results for b and x[1] are reproducible when sampling with the same seed, but x[2] is not.