"shape mismatch" when new data is set as a predictor for sample_posterior_predictive

I think you have to use model.set_dim if you modify the length of the dimension with coordinate values assigned to it.

Refitting PyMC models with ArviZ — ArviZ dev documentation is not specifically about this but it does this among other things, it might also be helpful

1 Like