bijx.IMHState¶
- class bijx.IMHState[source]¶
Bases:
PytreeState for Independent Metropolis-Hastings sampler.
Stores current position and associated log probabilities for both target and proposal distributions.
- __init__(position, log_prob_target, log_prob_proposal)¶
- Parameters:
position (Any)
log_prob_target (float)
log_prob_proposal (float)
- Return type:
None
Attributes
Current sample position in the state space.
Log probability of position under target distribution.
Log probability of position under proposal distribution.
- position: Any¶
Current sample position in the state space.
- log_prob_target: float¶
Log probability of position under target distribution.
- log_prob_proposal: float¶
Log probability of position under proposal distribution.