API: Turing.Inference
Turing.Inference.CSMC
— TypeCSMC(...)
Equivalent to PG
.
Turing.Inference.ESS
— TypeESS
Elliptical slice sampling algorithm.
Examples
julia> @model function gdemo(x)
+
+
+
+
+
m ~ Normal()
x ~ Normal(m, 0.5)
end
@@ -140,7 +597,6 @@
y[1] 20.0342 20.1188 20.2135 20.2588 20.4188
y[2] 20.1870 20.3178 20.3839 20.4466 20.5895
-
julia> ys_pred = vec(mean(Array(group(predictions, :y)); dims = 1));
julia> sum(abs2, ys_test - ys_pred) ≤ 0.1
@@ -171,3 +627,4 @@
2-element Array{Array{Float64,1},1}:
[-2.0844148956440796]
[-1.704630494695469]