-
Notifications
You must be signed in to change notification settings - Fork 420
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
Add LKJCholesky #1339
Add LKJCholesky #1339
Conversation
In the current design, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great 👍
I think it would be good to remove the type computations whenever possible. It seems often one could just use sum
. If one wants to ensure type stability often a better approach is to perform as many computations as possible and only fall back to e.g. oftype(result, Inf)
if necessary in the end.
Co-authored-by: David Widmann <[email protected]>
Codecov Report
@@ Coverage Diff @@
## master #1339 +/- ##
==========================================
+ Coverage 83.05% 83.50% +0.45%
==========================================
Files 117 118 +1
Lines 6756 6864 +108
==========================================
+ Hits 5611 5732 +121
+ Misses 1145 1132 -13
Continue to review full report at Codecov.
|
Co-authored-by: David Widmann <[email protected]>
Alright, I think I've addressed all the comments. |
Co-authored-by: Moritz Schauer <[email protected]>
Seems everyone is happy with the PR 🙂 Thanks a lot, @sethaxen! |
This PR adds an
LKJCholesky
distribution whose support areLinearAlgebra.Cholesky
factorizations of correlation matrices, as discussed in #1336.Essentially all of the functionality is there; I just need to add tests.