PriorMassTermination

class jaxrens.sampling.termination.PriorMassTermination(n_live, threshold=1e-3, n_cull=1)[source]

Bases: object

Terminate when remaining prior mass contributes negligibly to evidence.

Skilling-style check: the upper bound on the remaining contribution to Z is X_i * L_max_remaining where X_i is the prior mass left after iteration i ((i + 1) * log_alpha in log space, see jaxrens.prior_mass) and L_max_remaining is bounded above by the likelihood at the current contour (exp(-emax)).

Convergence: remaining contribution < threshold * Z.

Parameters:
update_evidence(log_evidence)[source]

Update the current evidence estimate (called by outer loop).

Parameters:

log_evidence (float)

Return type:

None