Skip to content

Commit 2a2881a

Browse files
authored
Merge pull request #41 from TuringLang/yebai-patch-2
replace `filldist` with `product_distribution`
2 parents 9ad7b76 + 5ac3572 commit 2a2881a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

models/dppl_hmm_semisup.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ for t in 2:T_unsup
2828
end
2929

3030
@model function dppl_hmm_semisup(K, T, T_unsup, w, z, u, alpha, beta)
31-
theta ~ filldist(Dirichlet(alpha), K)
32-
phi ~ filldist(Dirichlet(beta), K)
31+
theta ~ product_distribution(fill(Dirichlet(alpha), K))
32+
phi ~ product_distribution(fill(Dirichlet(beta), K))
3333
for t in 1:T
3434
w[t] ~ Categorical(phi[:, z[t]]);
3535
end

0 commit comments

Comments
 (0)