Time used for collecting 2 million samples
- Turing.NUTS: 3318.293540 seconds (33.35 G allocations: 1.299 TiB, 29.35% gc time)
- Turing.DynamicNUTS: 848.741643 seconds (7.86 G allocations: 251.076 GiB, 32.13% gc time)
using the following
using DynamicHMC, Turing, Test
@model gdemo(x, y) = begin
s ~ InverseGamma(2,3)
m ~ Normal(0,sqrt(s))
x ~ Normal(m, sqrt(s))
y ~ Normal(m, sqrt(s))
return s, m
end
mf = gdemo(1.5, 2.0)
@time chn1 = sample(mf, DynamicNUTS(2000000));
@time chn2 = sample(mf, Turing.NUTS(2000000, 0.65));