Skip to content

Conversation

@nonconvexopt
Copy link
Contributor

@nonconvexopt nonconvexopt commented Dec 24, 2021

Implement #68050
Reopened merged and reverted PR #68588 worked with @neerajprad
cc @neerajprad

Sorry for the confusion.

TODO:

  • Unit Test
  • Documentation
  • Change constraint of matrix variables with 'torch.distributions.constraints.symmetric' if it is reviewed and merged. Debug positive definite constraints Debug positive definite constraints #68720

nonconvexopt and others added 30 commits November 8, 2021 09:19
@facebook-github-bot
Copy link
Contributor

@neerajprad has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@nonconvexopt
Copy link
Contributor Author

nonconvexopt commented Dec 31, 2021

Thank you for your time. I will look forward to contribute Inverse Wishart distribution next at #70275.

@nonconvexopt nonconvexopt deleted the wishart_distribution branch December 31, 2021 02:00
wconstab pushed a commit that referenced this pull request Jan 5, 2022
Summary:
Implement #68050
Reopened merged and reverted PR #68588 worked with neerajprad
cc neerajprad

Sorry for the confusion.

TODO:

- [x] Unit Test
- [x] Documentation
- [x] Change constraint of matrix variables with 'torch.distributions.constraints.symmetric' if it is reviewed and merged. Debug positive definite constraints #68720

Pull Request resolved: #70377

Reviewed By: mikaylagawarecki

Differential Revision: D33355132

Pulled By: neerajprad

fbshipit-source-id: e968c0d9a3061fb2855564b96074235e46a57b6c
facebook-github-bot pushed a commit that referenced this pull request Feb 16, 2022
…72059)

Summary:
Maintanance of #70377
Multiple modifications of the merged initial implementation of Wishart distribution.
cc neerajprad

Key modifications:
- `torch/distributions/wishart.py`: Clamp (Clip) float type values to calculate reciprocal in numerically stable manner, by using the `eps` value paired to each `torch.dtype`
- `test/distributions/test_distributions.py`: Test Wishart distribution implementation in numerically unstable zones, i.e `df` values are at `ndim - 1 < df < ndim` where `ndim` is the one dimenstion of the Wishart parameter & sample matrix.

Pull Request resolved: #72059

Reviewed By: H-Huang

Differential Revision: D34245091

Pulled By: neerajprad

fbshipit-source-id: 1cd653c1d5c663346433e84fd0bbe2e590790908
pytorchmergebot pushed a commit that referenced this pull request Feb 16, 2022
…72059)

Summary:
Maintanance of #70377
Multiple modifications of the merged initial implementation of Wishart distribution.
cc neerajprad

Key modifications:
- `torch/distributions/wishart.py`: Clamp (Clip) float type values to calculate reciprocal in numerically stable manner, by using the `eps` value paired to each `torch.dtype`
- `test/distributions/test_distributions.py`: Test Wishart distribution implementation in numerically unstable zones, i.e `df` values are at `ndim - 1 < df < ndim` where `ndim` is the one dimenstion of the Wishart parameter & sample matrix.

Pull Request resolved: #72059

Reviewed By: H-Huang

Differential Revision: D34245091

Pulled By: neerajprad

fbshipit-source-id: 1cd653c1d5c663346433e84fd0bbe2e590790908
(cherry picked from commit ef1da3b)
cyyever pushed a commit to cyyever/pytorch_private that referenced this pull request Feb 17, 2022
…(#72059)

Summary:
Maintanance of pytorch/pytorch#70377
Multiple modifications of the merged initial implementation of Wishart distribution.
cc neerajprad

Key modifications:
- `torch/distributions/wishart.py`: Clamp (Clip) float type values to calculate reciprocal in numerically stable manner, by using the `eps` value paired to each `torch.dtype`
- `test/distributions/test_distributions.py`: Test Wishart distribution implementation in numerically unstable zones, i.e `df` values are at `ndim - 1 < df < ndim` where `ndim` is the one dimenstion of the Wishart parameter & sample matrix.

Pull Request resolved: pytorch/pytorch#72059

Reviewed By: H-Huang

Differential Revision: D34245091

Pulled By: neerajprad

fbshipit-source-id: 1cd653c1d5c663346433e84fd0bbe2e590790908
(cherry picked from commit ef1da3ba465247f5777c3c40a90b96955c4281d0)
cyyever pushed a commit to cyyever/pytorch_private that referenced this pull request Feb 17, 2022
…(#72059)

Summary:
Maintanance of pytorch/pytorch#70377
Multiple modifications of the merged initial implementation of Wishart distribution.
cc neerajprad

Key modifications:
- `torch/distributions/wishart.py`: Clamp (Clip) float type values to calculate reciprocal in numerically stable manner, by using the `eps` value paired to each `torch.dtype`
- `test/distributions/test_distributions.py`: Test Wishart distribution implementation in numerically unstable zones, i.e `df` values are at `ndim - 1 < df < ndim` where `ndim` is the one dimenstion of the Wishart parameter & sample matrix.

Pull Request resolved: pytorch/pytorch#72059

Reviewed By: H-Huang

Differential Revision: D34245091

Pulled By: neerajprad

fbshipit-source-id: 1cd653c1d5c663346433e84fd0bbe2e590790908
(cherry picked from commit ef1da3ba465247f5777c3c40a90b96955c4281d0)
cyyever pushed a commit to cyyever/pytorch_private that referenced this pull request Feb 17, 2022
…(#72059)

Summary:
Maintanance of pytorch/pytorch#70377
Multiple modifications of the merged initial implementation of Wishart distribution.
cc neerajprad

Key modifications:
- `torch/distributions/wishart.py`: Clamp (Clip) float type values to calculate reciprocal in numerically stable manner, by using the `eps` value paired to each `torch.dtype`
- `test/distributions/test_distributions.py`: Test Wishart distribution implementation in numerically unstable zones, i.e `df` values are at `ndim - 1 < df < ndim` where `ndim` is the one dimenstion of the Wishart parameter & sample matrix.

Pull Request resolved: pytorch/pytorch#72059

Reviewed By: H-Huang

Differential Revision: D34245091

Pulled By: neerajprad

fbshipit-source-id: 1cd653c1d5c663346433e84fd0bbe2e590790908
(cherry picked from commit ef1da3ba465247f5777c3c40a90b96955c4281d0)
cyyever pushed a commit to cyyever/pytorch_private that referenced this pull request Feb 17, 2022
…(#72059)

Summary:
Maintanance of pytorch/pytorch#70377
Multiple modifications of the merged initial implementation of Wishart distribution.
cc neerajprad

Key modifications:
- `torch/distributions/wishart.py`: Clamp (Clip) float type values to calculate reciprocal in numerically stable manner, by using the `eps` value paired to each `torch.dtype`
- `test/distributions/test_distributions.py`: Test Wishart distribution implementation in numerically unstable zones, i.e `df` values are at `ndim - 1 < df < ndim` where `ndim` is the one dimenstion of the Wishart parameter & sample matrix.

Pull Request resolved: pytorch/pytorch#72059

Reviewed By: H-Huang

Differential Revision: D34245091

Pulled By: neerajprad

fbshipit-source-id: 1cd653c1d5c663346433e84fd0bbe2e590790908
(cherry picked from commit ef1da3ba465247f5777c3c40a90b96955c4281d0)
cyyever pushed a commit to cyyever/pytorch_private that referenced this pull request Feb 17, 2022
…(#72059)

Summary:
Maintanance of pytorch/pytorch#70377
Multiple modifications of the merged initial implementation of Wishart distribution.
cc neerajprad

Key modifications:
- `torch/distributions/wishart.py`: Clamp (Clip) float type values to calculate reciprocal in numerically stable manner, by using the `eps` value paired to each `torch.dtype`
- `test/distributions/test_distributions.py`: Test Wishart distribution implementation in numerically unstable zones, i.e `df` values are at `ndim - 1 < df < ndim` where `ndim` is the one dimenstion of the Wishart parameter & sample matrix.

Pull Request resolved: pytorch/pytorch#72059

Reviewed By: H-Huang

Differential Revision: D34245091

Pulled By: neerajprad

fbshipit-source-id: 1cd653c1d5c663346433e84fd0bbe2e590790908
(cherry picked from commit ef1da3ba465247f5777c3c40a90b96955c4281d0)
cyyever pushed a commit to cyyever/pytorch_private that referenced this pull request Feb 17, 2022
…(#72059)

Summary:
Maintanance of pytorch/pytorch#70377
Multiple modifications of the merged initial implementation of Wishart distribution.
cc neerajprad

Key modifications:
- `torch/distributions/wishart.py`: Clamp (Clip) float type values to calculate reciprocal in numerically stable manner, by using the `eps` value paired to each `torch.dtype`
- `test/distributions/test_distributions.py`: Test Wishart distribution implementation in numerically unstable zones, i.e `df` values are at `ndim - 1 < df < ndim` where `ndim` is the one dimenstion of the Wishart parameter & sample matrix.

Pull Request resolved: pytorch/pytorch#72059

Reviewed By: H-Huang

Differential Revision: D34245091

Pulled By: neerajprad

fbshipit-source-id: 1cd653c1d5c663346433e84fd0bbe2e590790908
(cherry picked from commit ef1da3ba465247f5777c3c40a90b96955c4281d0)
cyyever pushed a commit to cyyever/pytorch_private that referenced this pull request Feb 17, 2022
…(#72059)

Summary:
Maintanance of pytorch/pytorch#70377
Multiple modifications of the merged initial implementation of Wishart distribution.
cc neerajprad

Key modifications:
- `torch/distributions/wishart.py`: Clamp (Clip) float type values to calculate reciprocal in numerically stable manner, by using the `eps` value paired to each `torch.dtype`
- `test/distributions/test_distributions.py`: Test Wishart distribution implementation in numerically unstable zones, i.e `df` values are at `ndim - 1 < df < ndim` where `ndim` is the one dimenstion of the Wishart parameter & sample matrix.

Pull Request resolved: pytorch/pytorch#72059

Reviewed By: H-Huang

Differential Revision: D34245091

Pulled By: neerajprad

fbshipit-source-id: 1cd653c1d5c663346433e84fd0bbe2e590790908
(cherry picked from commit ef1da3ba465247f5777c3c40a90b96955c4281d0)
cyyever pushed a commit to cyyever/pytorch_private that referenced this pull request Feb 20, 2022
…(#72059)

Summary:
Maintanance of pytorch/pytorch#70377
Multiple modifications of the merged initial implementation of Wishart distribution.
cc neerajprad

Key modifications:
- `torch/distributions/wishart.py`: Clamp (Clip) float type values to calculate reciprocal in numerically stable manner, by using the `eps` value paired to each `torch.dtype`
- `test/distributions/test_distributions.py`: Test Wishart distribution implementation in numerically unstable zones, i.e `df` values are at `ndim - 1 < df < ndim` where `ndim` is the one dimenstion of the Wishart parameter & sample matrix.

Pull Request resolved: pytorch/pytorch#72059

Reviewed By: H-Huang

Differential Revision: D34245091

Pulled By: neerajprad

fbshipit-source-id: 1cd653c1d5c663346433e84fd0bbe2e590790908
(cherry picked from commit ef1da3ba465247f5777c3c40a90b96955c4281d0)
cyyever pushed a commit to cyyever/pytorch_private that referenced this pull request Feb 20, 2022
…(#72059)

Summary:
Maintanance of pytorch/pytorch#70377
Multiple modifications of the merged initial implementation of Wishart distribution.
cc neerajprad

Key modifications:
- `torch/distributions/wishart.py`: Clamp (Clip) float type values to calculate reciprocal in numerically stable manner, by using the `eps` value paired to each `torch.dtype`
- `test/distributions/test_distributions.py`: Test Wishart distribution implementation in numerically unstable zones, i.e `df` values are at `ndim - 1 < df < ndim` where `ndim` is the one dimenstion of the Wishart parameter & sample matrix.

Pull Request resolved: pytorch/pytorch#72059

Reviewed By: H-Huang

Differential Revision: D34245091

Pulled By: neerajprad

fbshipit-source-id: 1cd653c1d5c663346433e84fd0bbe2e590790908
(cherry picked from commit ef1da3ba465247f5777c3c40a90b96955c4281d0)
cyyever pushed a commit to cyyever/pytorch_private that referenced this pull request Feb 20, 2022
…(#72059)

Summary:
Maintanance of pytorch/pytorch#70377
Multiple modifications of the merged initial implementation of Wishart distribution.
cc neerajprad

Key modifications:
- `torch/distributions/wishart.py`: Clamp (Clip) float type values to calculate reciprocal in numerically stable manner, by using the `eps` value paired to each `torch.dtype`
- `test/distributions/test_distributions.py`: Test Wishart distribution implementation in numerically unstable zones, i.e `df` values are at `ndim - 1 < df < ndim` where `ndim` is the one dimenstion of the Wishart parameter & sample matrix.

Pull Request resolved: pytorch/pytorch#72059

Reviewed By: H-Huang

Differential Revision: D34245091

Pulled By: neerajprad

fbshipit-source-id: 1cd653c1d5c663346433e84fd0bbe2e590790908
(cherry picked from commit ef1da3ba465247f5777c3c40a90b96955c4281d0)
cyyever pushed a commit to cyyever/pytorch_private that referenced this pull request Feb 21, 2022
…(#72059)

Summary:
Maintanance of pytorch/pytorch#70377
Multiple modifications of the merged initial implementation of Wishart distribution.
cc neerajprad

Key modifications:
- `torch/distributions/wishart.py`: Clamp (Clip) float type values to calculate reciprocal in numerically stable manner, by using the `eps` value paired to each `torch.dtype`
- `test/distributions/test_distributions.py`: Test Wishart distribution implementation in numerically unstable zones, i.e `df` values are at `ndim - 1 < df < ndim` where `ndim` is the one dimenstion of the Wishart parameter & sample matrix.

Pull Request resolved: pytorch/pytorch#72059

Reviewed By: H-Huang

Differential Revision: D34245091

Pulled By: neerajprad

fbshipit-source-id: 1cd653c1d5c663346433e84fd0bbe2e590790908
(cherry picked from commit ef1da3ba465247f5777c3c40a90b96955c4281d0)
facebook-github-bot pushed a commit that referenced this pull request Mar 15, 2022
…72993)

Summary:
Maintanance of #70377
Multiple modifications of the merged initial implementation of Wishart distribution.

Key modifications:
* torch/distributions/wishart.py: Clamp (Clip) float type values to calculate reciprocal in numerically stable manner, by using the eps value paired to each torch.dtype
* test/distributions/test_distributions.py: Test Wishart distribution implementation in numerically unstable zones, i.e df values are at ndim - 1 < df < ndim where ndim is the one dimenstion of the Wishart parameter & sample matrix.

Re-opened reverted PR #72059
cc neerajprad vadimkantorov

Pull Request resolved: #72993

Reviewed By: samdow

Differential Revision: D34853807

Pulled By: neerajprad

fbshipit-source-id: eb62dca19bf8a934fdf59b4ffc58587447fe8378
pytorchmergebot pushed a commit that referenced this pull request Mar 15, 2022
…72993)

Summary:
Maintanance of #70377
Multiple modifications of the merged initial implementation of Wishart distribution.

Key modifications:
* torch/distributions/wishart.py: Clamp (Clip) float type values to calculate reciprocal in numerically stable manner, by using the eps value paired to each torch.dtype
* test/distributions/test_distributions.py: Test Wishart distribution implementation in numerically unstable zones, i.e df values are at ndim - 1 < df < ndim where ndim is the one dimenstion of the Wishart parameter & sample matrix.

Re-opened reverted PR #72059
cc neerajprad vadimkantorov

Pull Request resolved: #72993

Reviewed By: samdow

Differential Revision: D34853807

Pulled By: neerajprad

fbshipit-source-id: eb62dca19bf8a934fdf59b4ffc58587447fe8378
(cherry picked from commit 99240c0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla signed open source triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants