Skip to main content

train_test_split

Function train_test_split 

Source
pub fn train_test_split(
    n: usize,
    test_fraction: f64,
    seed: u64,
) -> (Vec<usize>, Vec<usize>)
Expand description

Train/test split indices.