jaxrens.sampling.termination

Termination criteria for nested sampling.

Pluggable termination system: each criterion implements the TerminationCriterion protocol. The outer NS loop calls check() after each iteration and terminates when any criterion is satisfied.

Available criteria: - IterationTermination: stop after max_iterations - PriorMassTermination: stop when remaining prior mass is negligible - TempTermination: stop when Z(T_target) has converged (Baldock et al. 2017) - EnergyTermination: stop when E_max < target energy

Functions

check_any

Check all termination criteria and return on first satisfied.

Classes

EnergyTermination

Terminate when the dead-point energy falls below a target.

IterationTermination

Terminate after a fixed number of iterations.

KB_EV

Convert a string or number to a floating point number, if possible.

PriorMassTermination

Terminate when remaining prior mass contributes negligibly to evidence.

TempTermination

Temperature-based termination following Baldock et al. (2017).

TerminationCriterion

Protocol for termination criteria.