Skip to main content

resample_and_optimize

Function resample_and_optimize 

Source
pub fn resample_and_optimize(
    stat: &CollapsedStat,
    rng: &mut impl Rng,
    opt_iter: usize,
) -> Result<CollapsedOut>
Expand description

Resample from over-resolved sufficient statistics: randomly select ~half the groups, then optimise to produce a fresh CollapsedOut.