Skip to main content

train_test_split

Function train_test_split 

Source
pub fn train_test_split<T: Clone>(
    data: &[T],
    train_ratio: f64,
    seed: u64,
) -> (Vec<T>, Vec<T>)
Expand description

Simple train/test split