Bijectors.jl
Bijectors.jl copied to clipboard
Implementation of normalising flows and constrained random variable transformations
See, e.g., https://github.com/TuringLang/NormalizingFlows.jl/pull/46
There's really not enough information on the main readme, I know there's a link to https://turinglang.org/Bijectors.jl/stable/ but I feel like this should contain enough information to get started / running...
Follow up of https://github.com/TuringLang/DynamicPPL.jl/issues/817
```julia julia> using Distributions, Bijectors julia> dist = product_distribution((a = Normal(), b = Normal())) ProductNamedTupleDistribution{(:a, :b)}( a: Normal{Float64}(μ=0.0, σ=1.0) b: Normal{Float64}(μ=0.0, σ=1.0) ) julia> bijector(dist) ERROR: MethodError: no method matching...
ref: https://github.com/TuringLang/Bijectors.jl/pull/378#issuecomment-2786072823
Introduce a `batched mode` to `Bijectors.jl` and `NormalizingFlows.jl`, which are built on top of `Bijectors.jl`. Put simply, we want to enable users to provide multiple inputs to the model simultaneously...
```julia import Bijectors as B using Distributions: Normal dist = truncated(Normal(); lower=6.515552440303498) fwd = B.bijector(dist) ivs = B.inverse(fwd) y = -24.79099078521386 ``` Inverse transform (changed in #325): ```julia julia> B.logabsdetjac(ivs,...
Bijectors.jl, a package that facilitates transformations of distributions within Turing.jl, currently lacks full GPU compatibility. This limitation stems partly from the implementation details of certain bijectors and also from how...
Will Bijectors support transformations on CuArrays? Maybe a subset of transformations? Currently, the MWE that applies a Stacked transformation on a `CuArray` works, but computing the logabsdet of the Jacobian...
Let's move all Enzyme related tests in - [Interface test](https://github.com/TuringLang/Bijectors.jl/actions/runs/11704820479/job/32598116729) - [ Enzyme test ](https://github.com/TuringLang/Bijectors.jl/actions/runs/11704820490/job/32598119219) into a separate test script and run that on a dedicated CI task (allowed to...