I have some data r and want to run this Multinomial model, I get an initialisation error, although the prior predictive works.
T = 12, g = 3, I = 50
with pm.Model() as model:
alpha = pm.Gamma('alpha', 1, 1, shape=g)
M = pm.Gamma('M', 1, 1)
K = pm.Gamma('K', 1, 1)
mu = pm.Gamma('mu', M * T, K, shape=I)
n = pm.Poisson('n', mu, shape=I)
p = pm.Dirichlet('p', alpha, shape=(I, g))
pred = pm.Multinomial('pred', n, p, shape=(I, g), observed=r)
pp = pm.sample_prior_predictive()
trace = pm.sample()
SamplingError: Initial evaluation of model at starting point failed!