When I try to use PyMC3 Plotting, I have the following error:
AttributeError: module 'pymc3.glm.utils' has no attribute 'get_default_varnames'
This is the code I am trying to plot:
pm.plot_posterior(trace[3000:],
varnames=['CA_Armed_Assault_Mean', 'RUSSIAN_Armed_Assault_Mean', 'CA_Armed_Assault_STD', 'RUSSIAN_Armed_Assault_STD'],
color='#87ceeb')
I am using the 3.7 version and this is the full stack trace:
-------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-31-fbec6ccc2c42> in <module>
1 pm.plot_posterior(trace[3000:],
2 varnames=['CA_Armed_Assault_Mean', 'RUSSIAN_Armed_Assault_Mean', 'CA_Armed_Assault_STD', 'RUSSIAN_Armed_Assault_STD'],
----> 3 color='#87ceeb')
/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/arviz/data/io_pymc3.py in posterior_to_xarray(self)
58 def posterior_to_xarray(self):
59 """Convert the posterior to an xarray dataset."""
---> 60 var_names = self.pymc3.utils.get_default_varnames( # pylint: disable=no-member
61 self.trace.varnames,
62 include_transformed=False)
AttributeError: module 'pymc3.glm.utils' has no attribute 'get_default_varnames'
print(pm.__version__)
? – colcarroll