bijx.IMHState¶
- class bijx.IMHState[source]¶
Bases:
object
State 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
Methods
replace
(**updates)Returns a new object replacing the specified fields with new values.
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.
- replace(**updates)¶
Returns a new object replacing the specified fields with new values.