Expand description
Train/test splitting and cross-validation utilities.
Structs§
- RepeatedK
Fold - Repeated k-fold cross-validation.
Functions§
- cross_
val_ predict - Out-of-fold predictions for every sample.
- cross_
val_ score - Run k-fold cross-validation, returning per-fold scores.
- cross_
val_ score_ stratified - Stratified k-fold cross-validation — preserves class balance in each fold.
- group_
k_ fold - Group-aware k-fold: no group appears in both train and test within a fold.
- k_fold
- K-fold cross-validation splits.
- repeated_
cross_ val_ score - Convenience: run repeated k-fold CV on a clonable model.
- stratified_
k_ fold - Stratified k-fold cross-validation.
- stratified_
split - Stratified train/test split — preserves class proportions.
- time_
series_ split - Time-series cross-validation with expanding training window.
- train_
test_ split - Split a dataset into training and test sets.
Type Aliases§
- Scoring
Fn - Scoring function signature:
(y_true, y_pred) -> score.