-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
ENH: Enable changing observations of observed variables with observe
operator
#6932
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Is the issue here with |
The problem is with observe. Specifically observing a variable that's already observed |
do
operatorobserve
operator
This limitation particularly odd in that it seems like it prevents users from Furthermore, the error message that is generated here is cryptic. Clearly the code knows which parameter(s) is(are) neither deterministic nor free, but fails to provide this information to the user for unknown reasons. But this will all go away once we can |
The error message makes sense if you know the original idea was to go from free/deterministic -> observed. The author (me) just didn't consider going from observed -> observed |
As discussed with @ricardoV94, currently, we can change observations with the
do
operator only for a model that has no observations, i.e only free or deterministic variables:Before
After
Being able to do the above
The text was updated successfully, but these errors were encountered: