So taking a step back. What is the reason you want to use MutableData for the model? Speed-wise PyMC will always recompile everything when you sample after setting new data, so you won’t get any savings compared to defining a new model every time.
So taking a step back. What is the reason you want to use MutableData for the model? Speed-wise PyMC will always recompile everything when you sample after setting new data, so you won’t get any savings compared to defining a new model every time.