Skip to main content

k_fold

Function k_fold 

Source
pub fn k_fold(n: usize, k: usize, shuffle_rows: bool, seed: u64) -> Vec<Fold>
Expand description

k-fold splits over n rows. shuffle_rows randomizes fold membership (seeded); otherwise folds are contiguous blocks. Empty if k < 2 or k > n.