You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The error is that PyMC3 is trying to evaluate whether the default value is finite (for Gaussian is the mean), however np.isfinite cannot evaluate theano.shared type.
Current workaround is assigning a test value to Normal:
d = pm.Normal('d', mu=product_mu_shared, sd=product_sd, testval=0.)
this is really a question, and I'm inclined to close it, but should we do something to make this error easier to recognize? Like maybe trap the TypeError and add a suggestion of adding a test value?
I am having trouble implementing Normal distribution with mu that is a shared variable. See below example code:
Please provide a minimal, self-contained, and reproducible example.
Please provide the full traceback.
The text was updated successfully, but these errors were encountered: