Repository navigation
Releases
Releases · biaslab/ClosedFormExpectations.jl
v0.4.3
ClosedFormExpectations v0.4.3
Merged pull requests:
v0.4.2
ClosedFormExpectations v0.4.2
Merged pull requests:
- build(deps): bump julia-actions/setup-julia from 2 to 3 (#38) (@dependabot[bot])
- build(deps): bump actions/checkout from 6 to 7 (#40) (@dependabot[bot])
- feat: ClosedFormExpectation for Categorical (#42) (@Nimrais)
v0.4.1
ClosedFormExpectations v0.4.1
Merged pull requests:
- build(deps): bump actions/checkout from 4 to 6 (#37) (@dependabot[bot])
- build(deps): bump codecov/codecov-action from 6 to 7 (#39) (@dependabot[bot])
- Fix LogGamma @check_args for stricter Distributions.jl macro (#41) (@bvdmitri)
v0.4.0
ClosedFormExpectations v0.4.0
Breaking changes
ClosedWilliamsProductis now a parametric typeClosedWilliamsProduct{B}with abackendfield. Existing method signatures dispatching on
::ClosedWilliamsProductshould be updated to::ClosedWilliamsProduct{Nothing}for hand-coded implementations. The default constructorClosedWilliamsProduct()
still works, buttypeof(ClosedWilliamsProduct())is nowClosedWilliamsProduct{Nothing}instead ofClosedWilliamsProduct.
New features
- Enzyme.jl AD backend for
ClosedWilliamsProduct— automatically differentiates closed-form expectations viaClosedWilliamsProduct(EnzymeBackend())
(reverse-mode) orClosedWilliamsProduct(EnzymeBackend(EnzymeForward()))(forward-mode). No hand-coded gradients needed for distributions that already support
ClosedFormExpectation. - LogNormal as a base distribution
q— closed-formE_q[log p(x)]whereq ~ LogNormalandpis Gamma, LogNormal, or Normal. - ReLU support —
ReLUexpression with closed-form expectations for Normal, Gamma, and LogNormal, plusReLUForwardMessageandReLUBackwardMessage
distributions.
Other
- Documentation site published to GitHub Pages.
- Bumped codecov-action (5 → 6), julia-actions/cache (2 → 3).
Merged pull requests:
- build(deps): bump julia-actions/cache from 2 to 3 (#30) (@dependabot[bot])
- Add docs (#31) (@Nimrais)
- build(deps): bump codecov/codecov-action from 5 to 6 (#32) (@dependabot[bot])
- feat: add LogNormal as a base q (#33) (@Nimrais)
- Enzyme support for ClosedWilliamsProduct automatic derivation (#34) (@Nimrais)
- Publish docs at github pages (#35) (@Nimrais)
- Add ReLU (#36) (@Nimrais)
v0.3.1
ClosedFormExpectations v0.3.1
Merged pull requests:
- Remove unnecessary run command from CI workflow (#26) (@wouterwln)
- Add Codecov badge to README.md (#27) (@wouterwln)
- build(deps): bump actions/checkout from 5 to 6 (#28) (@dependabot[bot])
- fix: add gamma shape rate support (#29) (@Nimrais)
v0.3.0
ClosedFormExpectations v0.3.0
Breaking changes
- Exponential Family has been updated for 2.1.2 release
Merged pull requests:
v0.2.1
What's Changed
- Add
mean(::ClosedFormExpectation, f::Logpdf{LogGamma{T}}, q::GaussianDistributionsFamily)by @Nimrais in #20 - feat: add mean(::ClosedFormExpectation, ::Logpdf{MVNormal}, ::MVNormal) by @Nimrais in #21
- Add mean(::ClosedFormExpectation, p::Logpdf{LinearLogGamma}, q::MvNormal) by @Nimrais in #22
Full Changelog: v0.2.0...0.2.1
v0.2.0
ClosedFormExpectations v0.2.0
Merged pull requests:
- Implement ClosedWilliamsProduct for Normal (#10) (@Nimrais)
- support ClosedFormExpectation for GaussianDistributionsFamily (#11) (@Nimrais)
- Implement ClosedWilliamsProduct for NormalMeanVariance (#12) (@Nimrais)
- fix: implement Abs expectation over Normal (#14) (@Nimrais)
- build(deps): bump julia-actions/cache from 1 to 2 (#15) (@dependabot[bot])
- feat: mean(::ClosedWilliamsProduct, p::Abs, q::Normal) (#16) (@Nimrais)
- Support exponetial family for closed form expectation (#17) (@Nimrais)
- mean(expectation::ClosedWilliamsProduct, f, q::ExponentialFamilyDistribution{NormalMeanVariance}) (#18) (@Nimrais)
Closed issues:
- Register the package (#3)
v0.1.0
ClosedFormExpectations v0.1.0
Merged pull requests:
- build(deps): bump julia-actions/setup-julia from 1 to 2 (#1) (@dependabot[bot])
- Add closed form expectation for Gamma (#7) (@Nimrais)
- feat: add mean(::ClosedWilliamsProduct, ::Logpdf(LogNormal), ::Gamma) (#9) (@Nimrais)
Closed issues:
Features:
Closed for expressions for the following functions are added:
- mean(::ClosedFormExpectation, ::typeof(log), q::Gamma)
- mean(::ClosedWilliamsProduct, ::typeof(log), q::Gamma)
- mean(::ClosedFormExpectation, ::typeof(xlogx), q::Gamma)
- mean(::ClosedFormExpectation, ::typeof(xlog2x), q::Gamma)
- mean(::ClosedFormExpectation, ::ComposedFunction{Square, typeof(log)}, q::Gamma)
- mean(::ClosedWilliamsProduct, ::ComposedFunction{Square, typeof(log)}, q::Gamma)
- mean(::ClosedFormExpectation, ::ComposedFunction{Power{Val{3}}, typeof(log)}, q::Gamma)
- mean(::ClosedFormExpectation, f::ComposedFunction{typeof(log), ExpLogSquare}, q::Gamma)
- mean(::ClosedWilliamsProduct, f::ComposedFunction{typeof(log), ExpLogSquare}, q::Gamma)
- mean(::ClosedFormExpectation, f::Logpdf{LogNormal{T}}, q::Gamma)
- mean(::ClosedWilliamsProduct, f::Logpdf{LogNormal{T}}, q::Gamma)
Tests:
To make tests less repetitive a new test function is added central_limit_theorem_test
0.0.2
- Intuitive and flexible interface for specifying functions and distributions following
Statistics.jl - Convenient
Logpdfstruct to represent log-probability density functions - Base.Fix1 support
- Laplace logpdf function expectation with respect to the Normal density
What's Changed
- Laplace with test by @Raphael-Tresor in #4
- Clean interface by @Nimrais in #6
Full Changelog: v0.0.1...v0.0.2
Closed: