TempTermination¶
- class jaxrens.sampling.termination.TempTermination(n_walkers, target_temp, n_cull=1, threshold=10.0)[source]¶
Bases:
objectTemperature-based termination following Baldock et al. (2017).
Monitors the partition function Z(T) at a target temperature. Terminates when new contributions to Z(T) are more than 10 orders of magnitude below the maximum contribution seen so far, meaning Z(T_target) has converged.
- The partition function contribution at iteration i is:
log_Z_term_i = log_w_i - beta * E_max_i
where log_w_i is the log prior-mass weight and beta = 1/(kB * T).