Skip to content

Glossary: ML Basics

KFold

Also written: StratifiedKFold, TimeSeriesSplit

Splitter objects that control how cross-validation folds are cut. Use StratifiedKFold for classification and TimeSeriesSplit for time-ordered rows, which always trains on the past and tests on the future.

Where the book teaches it

Related terms

Cross-validation (k-fold)StratifiedGroupKFold