Bijectors.jl
Implementation of normalising flows and constrained random variable transformations
Install / Use
/learn @TuringLang/Bijectors.jlREADME
Bijectors.jl
Bijectors.jl implements functions for transforming random variables and probability distributions.
A quick overview of some of the key functionality is provided below:
julia> using Bijectors
julia> dist = LogNormal()
LogNormal{Float64}(μ=0.0, σ=1.0)
julia> x = rand(dist) # Constrained to (0, ∞)
0.6471106974390148
julia> b = bijector(dist) # This maps from (0, ∞) to ℝ
(::Base.Fix1{typeof(broadcast), typeof(log)}) (generic function with 1 method)
julia> y = b(x) # Unconstrained value in ℝ
-0.43523790570180304
julia> # Returns b(x), and the log-absolute determinant of the Jacobian at x.
with_logabsdet_jacobian(b, x)
(-0.43523790570180304, 0.43523790570180304)
Please see the documentation for more information.
Get in touch
If you have any questions, please feel free to post on Julia Slack or Discourse. We also very much welcome GitHub issues or pull requests!
Related Skills
node-connect
345.9kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
106.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
345.9kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
345.9kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
