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
v4 is still unreleased and very experimental, but it a lot of our CI checks depend on it so with the latest or the development version this should definitely work. It could also be related to Aesara 2.2.0 and to #4961 in which case I'd recommend downgrading Aesara until we have been able to update the pymc3 codebase to be compatible with Aesara 2.2.0.
Extra note: even with the right versions this may error out with a different message, hopefully more graceful one because you are calling plot_trace on a MultiTrace object, which relies on ArviZ converting from MultiTrace to InferenceData automatically under the hoods. With v4 we are moving to InferenceData as the default backend for pymc3 directly, and we started that by moving all the conversion functionality from arviz to pymc3 codebase. Therefore, you may need to set return_inferencedata=True or convert explicitly before using plot_trace with pm.to_inference_data
@OriolAbril thanks for getting back. I have been downloading and installing the pymc3 build from GitHub and testing in new environments everyday. The errors I ran into yesterday did go away when I changed return_inferencedata=True in my pm.sample() command. Thank you for explaining the why behind the change. I was working with aesara=2.2.0 before and today as well. The change of setting worked well.
Are there any examples where the two methods you have mentioned are illustrated or is this wip?
I missed the notification, we have now released a beta for v4 and are working on examples in several notebooks, for example #5268. I will close the issue, but don't hesitate to ask on discourse in after a few weeks there are still not good examples on the documentation
pm.sample() runs correctly but the
trace
cannot be used to plot or summarize the posteriorI get the following error:
AttributeError: 'TensorVariable' object has no attribute 'logp_elemwise'
Please provide a minimal, self-contained, and reproducible example.
Please provide the full traceback.
Complete error traceback
Please provide any additional information below.
Versions and main components
pip install git+https://github.com/pymc-devs/pymc3
The text was updated successfully, but these errors were encountered: