-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* added cholesky_lower and cholesky_triangular * updated PD to use new cholesky_lower and cholesky_upper * simplified imports in BijectorsReverseDiffExtx * added ChainRules as a dep since we need the chain rules for cholesky, etc. * forgot to update Project.toml in previous commit * added explicit implementation of with_logabsdet_jacobian for PDBijector * Update src/utils.jl * added ProjectTo in rrules for cholesky_lower and cholesky_upper to be proper * added ProjectTo for cholesky_upper too * added transpose_eager as a alias for permutedims to allow definition of AD rules without type piracy * allow usage of ForwardDiff gradient as ground-truth * added AD tests for PDVecBijector * added AD tests for PDVecBijector to runtests and commented out all other tests for the sake of reproducing ReverseDiff bug * forgot to remove type-piracy def of ReverseDiff rule for permutedims * use ReverseDiff.@Grad instead of ReverseDiff.@grad_from_chainrules * only define cholesky_lower and cholesky_upper rules for ReverseDiff, remove rules ChainRules defs * formatting * parameterise gradient test for PD bijector properly instead of using ForwardDiff as per suggestion of @devmotion * reversed chagne to test_ad * reactivate tests * updated doocstrings * improved PDVecBijector AD tests a bit * AD fix for CorrBijector (#281) * removed redundant imports to BijectorsZygoteExt * use cholesky_upper and cholesky_lower instead of cholesky_factor, etc. * added tests for CorrVecBijector * name testset correctly * use cholesky_lower and cholesky_upper instead of cholesky_factor * removed now-redundant cholesky_factor * Fix obsolete function references in tests. (#282) * Update chainrules.jl * Update corr.jl * Revert changes to transform. * removed type-piracy that has been addressed upstream and bumped Zygote version in test * use :L for Hermitian in `cholesky_lower` * fixed ForwardDiff tests for LKJCholesky * fixed tests for matrix dists and added tests for both values of uplo in LKJCholesky tests * another attempt at fixing Julia 1.6 tests --------- Co-authored-by: Hong Ge <[email protected]> --------- Co-authored-by: Hong Ge <[email protected]>
- Loading branch information
Showing
14 changed files
with
195 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.