Repository navigation
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)