Merge dynamic_hmc and hmc #618
Replies: 3 comments
-
+1. I think the easiest is to test if passing a As for the halton sequence we actually already have an implementation in . probably just need to refactoring out to util.py |
Beta Was this translation helpful? Give feedback.
-
Actually taking a look at the implementation in |
Beta Was this translation helpful? Give feedback.
-
Yeah, that's fair. I think it would be a little clearer, because then the difference between static and dynamic would be very apparent, but I don't think it's urgent or even necessary. |
Beta Was this translation helpful? Give feedback.
-
Current behavior
Currently, hmc and dynamic_hmc are separate algorithms. The latter differs from the former by drawing the length of each proposal from a distribution, while the former has a fixed length.
Desired behavior
Clearly, the former is a special case of the latter. The code overlap is reasonably substantial, and is about to be doubled, because we will also want a dynamic and static version of MH-MCHMC.
It would be nice therefore if we right a version of the static hmc which simply is the dynamic hmc called with a distribution over lengths that is delta on some given length.
Additional enhancement
There is also an alternative way to draw the lengths, outlined in this paper: https://arxiv.org/abs/2110.11576 . It would be nice to include this as an option in dynamic_hmc, which just amounts to providing a new distribution to draw lengths from:
Beta Was this translation helpful? Give feedback.
All reactions