-
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.
Widening the scope of the package and dropping support for batching (#…
…214) * renamed rv to result in forward * added abstrac type Transform and removed dimensionality from Bijector * updated Composed to new interface * updated Exp and Log to new interface * updated Logit to new interface * removed something that shouldnt be there * removed false statement in docstring of Transform * fixed a typo in implementation of logabsdetjac_batch * added types for representing batches * make it possible to use broadcasting for working with batches * updated SimplexBijector to new interface, I think * updated PDBijector to new interface * use transform_batch rather than broadcasting * added default implementations for batches * updated ADBijector to new interface * updated CorrBijector to new interface * updated Coupling to new interface * updated LeakyReLU to new interface * updated NamedBijector to new interface * updated BatchNormalisation to new interface * updated Permute to new interface * updated PlanarLayer to new interface * updated RadialLayer to new interface * updated RationalQuadraticSpline to new interface * updated Scale to new interface * updated Shift to new interface * updated Stacked to new interface * updated TruncatedBijector to new interface * added ConstructionBase as dependency * fixed a bunch of small typos and errors from previous commits * forgot to wrap some in Batch * allow inverses of non-bijectors * relax definition of VectorBatch so Vector{<:Real} is covered * just perform invertibility check in Inverse rather than inv * moved some code arround * added docstrings and default impls for mutating batched methods * add elementype to VectorBatch * simplify Shift bijector * added rrules for logabsdetjac_shift * use type-stable implementation of eachslice * initial work on adding proper testing * make Batch compatible with Zygote * updated OrderedBijector * temporary stuff * added docs * removed all batch related functionality * move bijectors over to with_logabsdet_jacobian and drop official batch support * updated compat * updated tests * updated docs * removed reundndat dep * remove batch * remove redundant defs of transform * removed unnecessary impls of with_logabsdet_jacobian * remove usage of Exp and Log in tests * fixed docs * added bijectors with docs to docs * small change to docs * fixed bug in computation of logabsdetjac of truncated * bump minor version * run GH actions on Julia 1.6, which is the new LTS, instead of 1.3 * added Github actions for making docs, etc. * removed left-overs from batch impls * removed redundant comment * dont return NamedTuple from with_logabsdet_jacobian * remove unnused methods * remove old deprecation warnings * fix exports * updated tests for deprecations * completed some random TODOs * fix SimplexBijector tests * removed whitespace * made some docstrings into doctests * removed unnused method * improved show for scale and shift * converted example for Coupling into doctest * added reference to Coupling bijector for NamedCoupling * fixed docstring * fixed documentation setup * nvm, now I fixed documentation setup * removed references to dimensionality in code * fixed typo * add impl of invertible for Elementwise * added transforms and distributions as separate pages in docs * removed all the unnecessary stuff in README * added examples to docs * added some show methods for certain bijectors * added compat entries to docs * updated docstring for RationalQuadraticSpline * removed commented code * remove reference to logpdf_forward * remove enforcement of type of input and output being the same in tests * make logpdf_with_trans compatible with logpdf when it comes to handling batches * Apply suggestions from code review Co-authored-by: David Widmann <[email protected]> * remove usage of invertible, etc. and use InverseFunctions.NoInverse instead * specialze transform on Function * removed unnecessary show and deprecation warnings * remove references to Log and Exp --------- Co-authored-by: Hong Ge <[email protected]> Co-authored-by: David Widmann <[email protected]>
- Loading branch information
1 parent
0bb86e2
commit 8b924d0
Showing
44 changed files
with
851 additions
and
2,235 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: DocsPreviewCleanup | ||
|
||
on: | ||
pull_request: | ||
types: [closed] | ||
|
||
jobs: | ||
cleanup: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout gh-pages branch | ||
uses: actions/checkout@v2 | ||
with: | ||
ref: gh-pages | ||
- name: Delete preview and history + push changes | ||
run: | | ||
if [ -d "previews/PR$PRNUM" ]; then | ||
git config user.name "Documenter.jl" | ||
git config user.email "[email protected]" | ||
git rm -rf "previews/PR$PRNUM" | ||
git commit -m "delete preview" | ||
git branch gh-pages-new $(echo "delete history" | git commit-tree HEAD^{tree}) | ||
git push --force origin gh-pages-new:gh-pages | ||
fi | ||
env: | ||
PRNUM: ${{ github.event.number }} |
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.
8b924d0
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
8b924d0
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.
Registration pull request created: JuliaRegistries/General/76818
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via: