Skip to content

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

Merged
fonnesbeck merged 1 commit into
pymc-devs:mainfrom
fonnesbeck:update/glm-negbin-arviz1
Jun 6, 2026
Merged

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

Conversation

@fonnesbeck

@fonnesbeck fonnesbeck commented May 10, 2026

Copy link
Copy Markdown
Member

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
@fonnesbeck fonnesbeck merged commit 9fafefa into pymc-devs:main Jun 6, 2026
2 checks passed
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