Function sbr::data::train_test_split[][src]

pub fn train_test_split<R: Rng>(
    interactions: &mut Interactions,
    rng: &mut R,
    test_fraction: f32
) -> (Interactions, Interactions)

Randomly split interactions between test and traiing sets.