Skip to content

Releases

v0.4.3

Choose a tag to compare

@github-actions github-actions released this 25 Oct 16:23
df2209c

ClosedFormExpectations v0.4.3

Diff since v0.4.2

Merged pull requests:

v0.4.2

Choose a tag to compare

@github-actions github-actions released this 30 Sep 17:01
2f720f7

ClosedFormExpectations v0.4.2

Diff since v0.4.1

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

Choose a tag to compare

@github-actions github-actions released this 29 Jun 08:31
9c46daa

ClosedFormExpectations v0.4.1

Diff since v0.4.0

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

Choose a tag to compare

@github-actions github-actions released this 08 Apr 13:46
a607077

ClosedFormExpectations v0.4.0

Diff since v0.3.1

Breaking changes

  • ClosedWilliamsProduct is now a parametric type ClosedWilliamsProduct{B} with a backend field. Existing method signatures dispatching on
    ::ClosedWilliamsProduct should be updated to ::ClosedWilliamsProduct{Nothing} for hand-coded implementations. The default constructor ClosedWilliamsProduct()
    still works, but typeof(ClosedWilliamsProduct()) is now ClosedWilliamsProduct{Nothing} instead of ClosedWilliamsProduct.

New features

  • Enzyme.jl AD backend for ClosedWilliamsProduct — automatically differentiates closed-form expectations via ClosedWilliamsProduct(EnzymeBackend())
    (reverse-mode) or ClosedWilliamsProduct(EnzymeBackend(EnzymeForward())) (forward-mode). No hand-coded gradients needed for distributions that already support
    ClosedFormExpectation.
  • LogNormal as a base distribution q — closed-form E_q[log p(x)] where q ~ LogNormal and p is Gamma, LogNormal, or Normal.
  • ReLU support — ReLU expression with closed-form expectations for Normal, Gamma, and LogNormal, plus ReLUForwardMessage and ReLUBackwardMessage
    distributions.

Other

  • Documentation site published to GitHub Pages.
  • Bumped codecov-action (5 → 6), julia-actions/cache (2 → 3).

Merged pull requests:

v0.3.1

Choose a tag to compare

@github-actions github-actions released this 16 Feb 15:39
21d1502

ClosedFormExpectations v0.3.1

Diff since v0.3.0

Merged pull requests:

v0.3.0

Choose a tag to compare

@github-actions github-actions released this 23 Nov 16:18
dc22846

ClosedFormExpectations v0.3.0

Diff since v0.2.1

Breaking changes

  • Exponential Family has been updated for 2.1.2 release

Merged pull requests:

v0.2.1

Choose a tag to compare

@Nimrais Nimrais released this 31 May 12:28

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

Choose a tag to compare

@github-actions github-actions released this 08 May 14:55

ClosedFormExpectations v0.2.0

Diff since v0.1.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

Choose a tag to compare

@github-actions github-actions released this 19 Apr 15:37
a05e0d5

ClosedFormExpectations v0.1.0

Diff since v0.0.2

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:

  • Argument order (#5)
  • TagBot trigger issue (#8)

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

Choose a tag to compare

@Nimrais Nimrais released this 17 Apr 08:54
322b987
  • Intuitive and flexible interface for specifying functions and distributions following Statistics.jl
  • Convenient Logpdf struct to represent log-probability density functions
  • Base.Fix1 support
  • Laplace logpdf function expectation with respect to the Normal density

What's Changed

Full Changelog: v0.0.1...v0.0.2

Closed:

#5