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 2f15b72 commit ee39e26Copy full SHA for ee39e26
benchmarks/src/Models.jl
@@ -56,7 +56,7 @@ a variable vector; observations passed as arguments, and as literals.
56
for i in 1:length(x)
57
x[i] ~ Normal(means[i], stds[i])
58
end
59
- y ~ product_distribution([Normal(means[i], stds[i]) for i in 1:length(x)])
+ y ~ product_distribution(map((mean, std) -> Normal(mean, std), means, stds))
60
0.0 ~ Normal(sum(y), 1)
61
return (; m=m, means=means, stds=stds)
62
0 commit comments