# DynamicHMC API rewrite

**URL:** <https://discourse.julialang.org/t/dynamichmc-api-rewrite/18980>\
**Category:** Statistics\
**Tags:** question\
**Created:** [December 25, 2018, 3:40pm UTC](https://discourse.julialang.org/t/dynamichmc-api-rewrite/18980 "2018-12-25T15:40:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Post date:** [December 25, 2018, 3:40pm UTC](https://discourse.julialang.org/t/dynamichmc-api-rewrite/18980/1 "2018-12-25T15:40:46Z")

</div>

I will be rewriting the API of DynamicHMC.jl shortly. I started a discussion at

[https://github.com/tpapp/DynamicHMC.jl/issues/30](https://github.com/tpapp/DynamicHMC.jl/issues/30)

and invite users to participate there, or in this topic. In particular, if there is a feature you are missing, or a use case that could be made easier, please share the details.

---

<div class="post-metadata">

**Author:** ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Post date:** [July 25, 2019, 9:02am UTC](https://discourse.julialang.org/t/dynamichmc-api-rewrite/18980/2 "2019-07-25T09:02:01Z")

</div>

The API of LogDensityProblems and DynamicHMC is being redesigned (issues: [DynamicHMC#30](https://github.com/tpapp/DynamicHMC.jl/issues/30), [LogDensityProblems#45](https://github.com/tpapp/LogDensityProblems.jl/issues/45)). This is necessary to address some issues related to ease of use, debugging, robustness, adaptation, and better integration with some advanced AD packages like Zygote.

Once the changes are complete, I will post a detailed writeup for the transition. But in the meantime, if you are using my MCMC libraries, you may want to pin versions, or put the following in your `Project.toml`’s `[compat]` section (you only need the `[compat]` if there isn’t one):

```nohighlight
[compat]
DynamicHMC = "^1.0.5"
LogDensityProblems = "^0.8.3"

```

For more information, please refer to the [Pkg docs](https://julialang.github.io/Pkg.jl/dev/compatibility/).
