Skip to content

Commit a5d1492

Browse files
github-actions[bot]CompatHelper Juliayebai
authored
CompatHelper: bump compat for Turing to 0.38 for package ppl, (keep existing compat) (#425)
* CompatHelper: bump compat for Turing to 0.38 for package ppl, (keep existing compat) * Update turing.jl --------- Co-authored-by: CompatHelper Julia <[email protected]> Co-authored-by: Hong Ge <[email protected]>
1 parent 7e18cd2 commit a5d1492

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/ppl/Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ Turing = "fce5fe82-541a-59a6-adf8-730c64b5f9a0"
66
[compat]
77
AbstractGPs = "0.5"
88
Distributions = "0.25"
9-
Turing = "0.24, 0.25 - 0.29, 0.30"
9+
Turing = "0.24, 0.25 - 0.29, 0.30, 0.38"
1010
julia = "1.6"

test/ppl/turing.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
f = GP(Matern32Kernel())
3636
u ~ f(X)
3737
λ = exp.(u)
38-
return y .~ Poisson.(λ)
38+
return y ~ product_distribution([Poisson(λ_i) for λ_i in λ])
3939
end
4040
m = latent_gp_regression(y, RowVecs(X))
4141
@test length(Turing.sample(m, Turing.NUTS(), 5)) == 5

0 commit comments

Comments
 (0)