Backtesting

Backtesting evaluates a forecasting model by replaying the past: at several successive origin dates, you train on earlier data then forecast the following period, and aggregate the errors. It simulates real use and gives a more reliable estimate than a single split.

Example

TimeSeriesSplit(n_splits=5, test_size=30)

Related concepts

The whole glossary