pub fn train_test_split(
samples: usize,
test_fraction: f64,
seed: u64,
) -> Result<(Vec<usize>, Vec<usize>), ErrorsJSL>Expand description
Shuffles sample indices and splits them into (train, test) index lists, with
test_fraction of the samples (at least one, and leaving at least one) in the test set.