Calculating WAIC for models with multiple likelihood functions with pymc3
问题 I try to predict the outcome of soccer games based on the number of goals scored and I use the following model: with pm.Model() as model: # global model parameters h = pm.Normal('h', mu = mu, tau = tau) sd_a = pm.Gamma('sd_a', .1, .1) sd_d = pm.Gamma('sd_d', .1, .1) alpha = pm.Normal('alpha', mu=mu, tau = tau) # team-specific model parameters a_s = pm.Normal("a_s", mu=0, sd=sd_a, shape=n) d_s = pm.Normal("d_s", mu=0, sd=sd_d, shape=n) atts = pm.Deterministic('atts', a_s - tt.mean(a_s)) defs =