-
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.
Add support for distributions with monotonically increasing
bijector
(
#297) * add support for `ordered` when bijector is monotonically increasing * bump patch version * Update src/interface.jl Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * formatting * Update src/interface.jl Co-authored-by: Seth Axen <[email protected]> * added more impls of is_monotonically_increasing * added `is_monotonically_increasing` for `Shift` * reverted is_monotonicall_increasing impl for Scale but added for Shift, as originally intended * added impl of `is_monotonically_decreasing` and corrected impls for compositions * added monotonic impls for `Scale` * added monotonic impls for `TruncatedBijector` * `ordered` now also supports monotonically decreasing transformations * added `inverse` impl for `SignFlip` * fixed `output_size` for `SignFlip` * formatting * another test case * updated a comment * added some additional comments * Apply suggestions from code review * Update test/bijectors/ordered.jl * added `OrderedDistribution` to address bugs in current `ordered` * return `OrderedDistribution` from `ordered` * move the `ordered` definition be near `OrderedDistribution` * initial work on adding tests * added currently failing correctness tests * fixed `rand` for `OrderedDistribution` * more extensive correctness testing of `ordered` * test ordered for higher dims * Apply suggestions from code review Co-authored-by: Seth Axen <[email protected]> * don't use `InverseGamma` as target due to heavy tails * Update src/bijectors/ordered.jl Co-authored-by: Seth Axen <[email protected]> * fixed syntax error * fixed OrderedBijector + added some docs for it * forgot to uncomment tests in previous commit + fixed them * more test uncommented * fixed failing tests for LKJ * Update test/ad/chainrules.jl Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Update test/ad/chainrules.jl Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Update test/ad/chainrules.jl Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * better initialization for ordered chains * added the description of the un-normalized `oredered` issue * fixed docstring of OrderedBijeector --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Seth Axen <[email protected]>
- Loading branch information
1 parent
edcdf8c
commit 026a07a
Showing
13 changed files
with
373 additions
and
33 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
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.
026a07a
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.
@JuliaRegistrator register
026a07a
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.
Error while trying to register: Version 0.13.14 already exists