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
{{ message }}
This repository has been archived by the owner on Dec 18, 2023. It is now read-only.
From the OpenTeams discussion today, we should have an easy way to add terms to the model density. Something like pyro.factor or pyro.conditionwhich behind the scenes adds an observe statement. We could also add a distribution like the unit distribution to bake in these terms.
The text was updated successfully, but these errors were encountered:
Summary:
Addresses [#1041](#1041). Imported the Unit Dist (with some minor modifications) from pyro. This will allow users to add terms to the model density:
```
bm.random_variable
def increment_log_prob():
val = Normal(0., 1.).log_prob(1.)
return Unit(val)
```
In the future we can wrap this with a `factor` statement.
Reviewed By: neerajprad
Differential Revision: D31516303
fbshipit-source-id: b8dc3245e012788c7d5b468aed26535d1cc1b83e
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
From the OpenTeams discussion today, we should have an easy way to add terms to the model density. Something like pyro.factor or pyro.conditionwhich behind the scenes adds an observe statement. We could also add a distribution like the unit distribution to bake in these terms.
The text was updated successfully, but these errors were encountered: