GibbsKernel#
- class liesel.goose.GibbsKernel(position_keys, transition_fn, identifier='')[source]#
Bases:
ModelMixin,Kernel[Any,DefaultTransitionInfo,DefaultTuningInfo],ReprMixinA Gibbs kernel implementing the
Kernelprotocol.Methods
end_epoch(prng_key, kernel_state, ...)Currently does nothing.
end_warmup(prng_key, kernel_state, ...)Currently does nothing.
init_state(prng_key, model_state)Initializes an (empty) kernel state.
start_epoch(prng_key, kernel_state, ...)Currently does nothing.
transition(prng_key, kernel_state, ...)Performs an MCMC transition.
tune(prng_key, kernel_state, model_state, epoch)Currently does nothing.
Attributes
Maps error codes to error messages.
An identifier for the kernel object that is set by the EngineBuilder if it is an empty string.
Is set to true if the kernel expects the history for tuning.
Keys for which the kernel handles the transition.