Using sample posterior predictive on new data

Ah yes, I totally missed that the target was not made into a pm.Data() object. Thank you for catching that @jessegrabowski!

I also want to add one thing that I have experienced in the past. That is if you have missing data in your target variable and you want automatic imputation then you won’t be able to turn your target into a pm.Data() object. In that case I believe that you need to pass in the target directly to your likelihood and specify a new model specifically for out of sample predictions. Here is a resource that I go back to time and time again for out of sample predictions.

2 Likes