PriorMassTermination¶
- class jaxrens.sampling.termination.PriorMassTermination(n_live, threshold=1e-3, n_cull=1)[source]¶
Bases:
objectTerminate 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_remainingwhereX_iis the prior mass left after iterationi((i + 1) * log_alphain log space, seejaxrens.prior_mass) andL_max_remainingis bounded above by the likelihood at the current contour (exp(-emax)).Convergence: remaining contribution <
threshold * Z.