-
Notifications
You must be signed in to change notification settings - Fork 46
Open
Description
#332 broke the AbstractMCMC.step
interface: It's not possible anymore to initialize the sampler, obtain the initial state, and then continue sampling with AbstractMCMC.step
.
The problem is
AdvancedHMC.jl/src/abstractmcmc.jl
Line 161 in 04ce92a
n_adapts = kwargs[:n_adapts] |
It assumes that
nadapts
is provided as a keyword argument to the step
function by the user. This is not part of the AbstractMCMC.step interface requirements. If AdvancedHMC wants to use such a keyword argument in the function body it should be possible to omit it and have a default value. I think that's still a bad idea though since then users/developers have to know about how AdvancedHMC internally (ab)uses keyword arguments to be able to pass around this information in the same way. IMO it would be better to put this into the state of the sampler if it's not intended to be fixed a priori when constructing the sampler.Metadata
Metadata
Assignees
Labels
No labels