SwapStats¶
- class jaxrens.sampling.inter_re_manager.SwapStats[source]¶
Bases:
TypedDictPublic return type of
InterREManager.apply’s stats dict.The aggregate fields (
n_swap_pairs_attempted,n_swap_pairs_accepted,acceptance_rate) are sums over all pairs and all swap cycles in the fire. The per-pair arrays carry the same totals broken down by pair_id (min(left, right)of the (k, k+1) pair). Always shape(n_runs - 1,)int32; whenn_runs < 2the arrays are length-zero.