Skip to content

update GLM-negative-binomial-regression for PyMC 6#876

Open
fonnesbeck wants to merge 1 commit into
pymc-devs:mainfrom
fonnesbeck:update/glm-negbin-arviz1
Open

update GLM-negative-binomial-regression for PyMC 6#876
fonnesbeck wants to merge 1 commit into
pymc-devs:mainfrom
fonnesbeck:update/glm-negbin-arviz1

Conversation

@fonnesbeck
Copy link
Copy Markdown
Member

@fonnesbeck fonnesbeck commented May 10, 2026

Summary

  • rename three pm.ConstantData calls to pm.Data, and rename az.plot_trace to az.plot_trace_dist.
  • Additional fix beyond the documented migration table: in arviz 1, idata.posterior is a xarray.DataTree rather than a Dataset, so np.exp(idata.posterior) raises TypeError: cannot directly convert a DataTree into a numpy array.
  • Replaced with np.exp(idata.posterior.to_dataset()).

@review-notebook-app
Copy link
Copy Markdown

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@fonnesbeck fonnesbeck changed the title update GLM-negative-binomial-regression for arviz 1 update GLM-negative-binomial-regression for PyMC 6 May 10, 2026
@fonnesbeck fonnesbeck marked this pull request as ready for review May 10, 2026 22:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants