You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please provide a minimal, self-contained, and reproducible example.
First making a basic example demonstrating the expected result. I have a model, I make a change to the data using pm.set_data, and I expect the posterior predictive to reflect that change. Here I simply change the shape of the data from 100 to 3, and check that the shape of the posterior predictive matches. Everything works as expected.
Now, I run almost the exact same snippet as above, except I wrap alpha + shared_data in pm.Deterministic. The rest is identical. Now, when I check the posterior predictive, the values no longer seem to be affected by pm.set_data, and the shape is still 100.
Description of your problem
Please provide a minimal, self-contained, and reproducible example.
First making a basic example demonstrating the expected result. I have a model, I make a change to the data using
pm.set_data
, and I expect the posterior predictive to reflect that change. Here I simply change the shape of the data from 100 to 3, and check that the shape of the posterior predictive matches. Everything works as expected.Now, I run almost the exact same snippet as above, except I wrap
alpha + shared_data
inpm.Deterministic
. The rest is identical. Now, when I check the posterior predictive, the values no longer seem to be affected bypm.set_data
, and the shape is still 100.Versions and main components
The text was updated successfully, but these errors were encountered: