TimeSeriesSplit
TimeSeriesSplit is a cross-validation strategy used for time-ordered data. It is designed to preserve the chronological order of observations and to prevent leakage of future information into training sets, which can bias performance estimates in forecasting tasks. It is available as TimeSeriesSplit in scikit-learn's model_selection module.
How it works: The data is partitioned into n_splits+1 consecutive blocks of roughly equal size. Each split
Parameters and usage: The primary parameter is n_splits, the number of train/test splits to generate. Optional
Notes: TimeSeriesSplit is particularly suitable for evaluating models where future data must not contaminate the training