TuringLang / AdvancedHMC.jl

Robust, modular and efficient implementation of advanced Hamiltonian Monte Carlo algorithms
https://turinglang.org/AdvancedHMC.jl/
MIT License
228 stars 39 forks source link

Add back the `HMC(eps, n_leapfrog)` as a convenience constructor #341

Closed yebai closed 1 year ago

yebai commented 1 year ago

Our doc string still contains the old HMC(eps, N) constructor, so let's actually define it.

https://github.com/TuringLang/AdvancedHMC.jl/blob/84290771ada04536c5247ac226cb1baed043dbc4/src/constructors.jl#L109

yebai commented 1 year ago

Added a test for this constructor in 966076f