GibbsKernel#
- class liesel.goose.gibbs.GibbsKernel(position_keys, transition_fn)[source]#
Bases:
ModelMixin
,Kernel
[Any
,DefaultTransitionInfo
,DefaultTuningInfo
]A Gibbs kernel implementing the
Kernel
protocol.Methods
This section is empty if this class has only inherited attributes.
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
This section is empty if this class has only inherited 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.