Skip to content
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

Unifying wrappers for distributions with logits/probs parametrization #141

Merged
merged 3 commits into from
May 9, 2019

Conversation

neerajprad
Copy link
Member

Based on @fritzo's suggestion in pyro-ppl/funsor#135, this creates light wrappers for all distributions with logits / probs parametrization. The advantage of this is that the underlying implementations are separate which makes them easy to test, simplifies code and removes any risk of accessing lazy parameters and triggering unnecessary computation. At the same time, the wrapper gives an identical interface to torch.distributions.

Testing: The wrappers are exercised in examples, the tests remain the same except for the renaming.

Copy link
Member

@fritzo fritzo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, I'll try to keep the same naming convention in funsor.

@fehiepsi
Copy link
Member

fehiepsi commented May 9, 2019

So this is what you have in mind for your previous comment. Got it now! :)

@fehiepsi fehiepsi merged commit 7da9574 into master May 9, 2019
@neerajprad neerajprad deleted the logit-probs branch November 19, 2019 19:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants