I’ve tried to follow a few examples on missing value imputation with numpyro, but I cannot find one in which it works on new data with missing values. Instead, what seems to happen is that whatever missing index that was derived during training does not change when I run new data through it, and this causes an error that starts with:
“ValueError: Incompatible shapes for broadcasting”
I started with this tutorial, and it works (with minor API changes):
But I made my own version (starting from copy of the original) to demonstrate the prediction problem here:
I would appreciate if anyone could either point out a way to fix the problem in my notebook or point me to any working example that uses Bayesian missing value imputation and predicts on new data with missing values. Thanks in advance!