-
Notifications
You must be signed in to change notification settings - Fork 1
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
Implement BivariateNormal distribution #99
Comments
…oal is for this to fully support batching of covariance matrices, etc.
👍 Thanks @tbrx for starting this. In Pyro, I found bugs in our |
Is the plan to send this upstream (i.e. is a |
I'm a bit worried that PyTorch 0.4 might miss some features of |
Maybe we could implement |
I think it would help to have a
BivariateNormal
distribution. TheMultivariateNormal
#52 is currently blocked in lack of batched/differentiable linear algebra operations, but for bivariate normals, it's simple to write the cholesky factorizations and inverses out by hand. This would also serve as a great reference implementation as we test theMultivariateNormal
once that is implemented. Here is an example implementation I wrote in Pyro (but the batching and shaping are different, so this will take some reworking for use in PyTorch): https://github.com/uber/pyro/blob/8f2f858/pyro/distributions/testing/bivariate_normal.py#L14The text was updated successfully, but these errors were encountered: