Expand description
Resampling index generators — k-fold / LOOCV splits and train/test partition, with a deterministic shuffle so results are reproducible.
Structs§
- Fold
- One train/test split by row index.
Functions§
- k_fold
k-fold splits overnrows.shuffle_rowsrandomizes fold membership (seeded); otherwise folds are contiguous blocks. Empty ifk < 2ork > n.- loocv
- Leave-one-out cross-validation =
n-fold (each test set is a single row). - train_
test_ split - A single train/test partition:
test_fractionof the (shuffled) rows go to test.Noneiftest_fractionis not in(0,1)orn < 2.