We currently specialize the HMC and NUTS kernels in the factory using closures. However this is unpractical, we are moving away from this design in blackjax, see the related discussion.
The HMC kernel factory has the following signature
I bumped into this design issue while implementing algorithms for step size adaptation where we have to "create" as many kernels as we change the values of the parameters.
I think this issue should be addressed before we move forward with the adaptation.
We currently specialize the HMC and NUTS kernels in the factory using closures. However this is unpractical, we are moving away from this design in
blackjax
, see the related discussion.The HMC kernel factory has the following signature
and the HMC kernel:
And we suggest to instead have:
I bumped into this design issue while implementing algorithms for step size adaptation where we have to "create" as many kernels as we change the values of the parameters.
I think this issue should be addressed before we move forward with the adaptation.