pymc-devs / pymc

Bayesian Modeling and Probabilistic Programming in Python
https://docs.pymc.io/
Other
8.48k stars 1.97k forks source link

Fix need for dummy data in `sample_posterior_predictive` #7265

Closed ricardoV94 closed 2 months ago

ricardoV94 commented 2 months ago

Description

Fix arviz backend find_constants

This also fixes a bug when doing sample_posterior_predictive with resized X data, where the old unused Y data would be retrieved and a dimension mismatch would crop up, unless a dummy Y was set prior to sampling.

Related Issue

Checklist

Type of change


📚 Documentation preview 📚: https://pymc--7265.org.readthedocs.build/en/7265/

jessegrabowski commented 2 months ago

Let's get this merged? The CI failure looks unrelated.