MHProposal#
- class liesel.goose.MHProposal(position: Position, log_correction: float)[source]#
Bases:
NamedTupleEncapsulates a proposed state and the log-correction for a Metropolis-Hastings transition.
- Parameters:
position (
Position(dict[str,Any])) – A dictionary mapping parameter names to their newly proposed values.log_correction (
float) – The Metropolis-Hastings correction in the case of an asymmetric proposal distribution. Let \(q(x' | x)\) be the density of the proposalx'given the current statex, then thelog_correctionis defined as \(\log[q(x | x') / q(x' | x)]\).
See also
Attributes
Let \(q(x' | x)\) be the proposal density, then \(log(q(x | x') / q(x' | x))\) is the log_mh_correction.
Alias for field number 0