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 f5bc54b commit ba5e3ebCopy full SHA for ba5e3eb
test/context_implementations.jl
@@ -4,7 +4,8 @@
4
@model function test(x)
5
μ ~ MvNormal(fill(0, 2), 2.0)
6
z = Vector{Int}(undef, length(x))
7
- z .~ Categorical.(fill([0.5, 0.5], length(x)))
+ # `z .~ Categorical.(ps)` cannot be parsed by Julia 1.0
8
+ (.~)(z, Categorical.(fill([0.5, 0.5], length(x))))
9
for i in 1:length(x)
10
x[i] ~ Normal(μ[z[i]], 0.1)
11
end
0 commit comments