Skip to content

Commit

Permalink
stan demos
Browse files Browse the repository at this point in the history
  • Loading branch information
Jachym.Barvinek committed Jul 30, 2024
1 parent 16cef92 commit 6456b2d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions assets/stan_demos/imdb_inference.stan
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
data {
vector<lower=0>[5] alpha;
array[5] int rating;
}
parameters {
simplex[5] d;
}
model {
d ~ dirichlet(alpha);
ratings[i] ~ multinomial(d);
}

0 comments on commit 6456b2d

Please sign in to comment.