From 6456b2d0794aed04a6d7ccc70442c984d8441f8f Mon Sep 17 00:00:00 2001 From: "Jachym.Barvinek" Date: Tue, 30 Jul 2024 22:24:58 +0200 Subject: [PATCH] stan demos --- assets/stan_demos/imdb_inference.stan | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 assets/stan_demos/imdb_inference.stan diff --git a/assets/stan_demos/imdb_inference.stan b/assets/stan_demos/imdb_inference.stan new file mode 100644 index 0000000..1c9c061 --- /dev/null +++ b/assets/stan_demos/imdb_inference.stan @@ -0,0 +1,11 @@ +data { + vector[5] alpha; + array[5] int rating; +} +parameters { + simplex[5] d; +} +model { + d ~ dirichlet(alpha); + ratings[i] ~ multinomial(d); +}