diff --git a/HISTORY.md b/HISTORY.md index a9daf473..74dbe0fc 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -1,5 +1,11 @@ # AdvancedHMC Changelog +## 0.8.5 + + - `rand_momentum(rng, metric, kinetic, θ)` is now part of the public API (exported). + Packages that extend AdvancedHMC with custom metric types can implement this method + without depending on an internal symbol. + ## 0.8.4 - Introduces an experimental way to improve the *diagonal* mass matrix adaptation using gradient information (similar to [nutpie](https://github.com/pymc-devs/nutpie)), diff --git a/Project.toml b/Project.toml index f38dda02..86905b6a 100644 --- a/Project.toml +++ b/Project.toml @@ -1,6 +1,6 @@ name = "AdvancedHMC" uuid = "0bf59076-c3b1-5ca4-86bd-e02cd72cde3d" -version = "0.8.4" +version = "0.8.5" [deps] AbstractMCMC = "80f14c24-f653-4e6a-9b94-39d6b0f70001" diff --git a/src/AdvancedHMC.jl b/src/AdvancedHMC.jl index 5db7644c..b321cadf 100644 --- a/src/AdvancedHMC.jl +++ b/src/AdvancedHMC.jl @@ -40,7 +40,7 @@ struct GaussianKinetic <: AbstractKinetic end export GaussianKinetic include("metric.jl") -export UnitEuclideanMetric, DiagEuclideanMetric, DenseEuclideanMetric +export UnitEuclideanMetric, DiagEuclideanMetric, DenseEuclideanMetric, rand_momentum include("hamiltonian.jl") export Hamiltonian