When I’m using the latest version of PyMC3 from github (pip install git+https://github.com/pymc-devs/pymc3) it fails to sample from this model (from the Bayesian Analysis with Python book):
with pm.Model() as pearson_model:
mu = pm.Normal('mu', mu=data.mean(0), sd=10, shape=2)
sigma_1 = pm.HalfNormal('sigma_1', 10)
sigma_2 = pm.HalfNormal('sigma_2', 10)
rho = pm.Uniform('ro', -1, 1)
cov = pm.math.stack(([sigma_1**2, sigma_1*sigma_2*rho],
[sigma_1*sigma_2*rho, sigma_2**2]))
y_pred = pm.MvNormal('y_pred', mu=mu, cov=cov, observed=data)
start = pm.find_MAP()
step = pm.NUTS(scaling=start)
trace_pearson = pm.sample(2000, step=step, start=start)
I don’t get any errors, but it never seems to be able to draw a single sample. However when I’m using the released version of PyMC3 it works, so I’m thinking it’s a regression? Is it known? If not should I submit an issue in github?