Closed
Description
X = theano.shared(np.array([1., 2., 3.]))
with pm.Model() as model:
x = pm.Normal('x', mu=0, sd=1)
n = pm.Normal('n', mu=X*x, sd=1, observed=np.array([1, 2, 3]))
mean_field = pm.fit(method='advi', n=50000,
callbacks=[pm.callbacks.CheckParametersConvergence(diff='relative')])
out_sample = mean_field.sample_node(n, size=100, more_replacements={X: np.random.randn(1000)})
I expect out_sample.eval().shape
to provide shape (100, 1000)
, but it has shape (100, 3)
. It seems like the replacement is not correctly applied. This is on pymc3 master.
Metadata
Metadata
Assignees
Labels
No labels