pub fn cutmix(
x1: &ArrayD<f64>,
x2: &ArrayD<f64>,
alpha: f64,
rng: &mut AugRng,
) -> Result<(ArrayD<f64>, f64), AugmentationError>Expand description
CutMix: paste a random rectangular region from x2 into x1.
The patch covers fraction (1 − lambda) of the spatial area.
Input must have at least 2 dimensions; last two are treated as (H, W).
Returns (mixed, lambda) where lambda = fraction of x1 retained.