Skip to content

v0.4.0

Choose a tag to compare

@github-actions github-actions released this 08 Apr 13:46
· 19 commits to main since this release
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: