Rolling-origin backtesting
Simulate production forecasting over history — the realistic way to score a model.
historical_forecasts() replays the model across your history with a moving origin, so the score reflects how it would have done in production rather than on one lucky split. Tune where it starts, how often it forecasts (stride), and whether it retrains each fold.
model.historical_forecasts(df, start=0.8, stride=7) bt = model.historical_forecasts(df, target_col='y', start=0.8,
stride=7, metrics=['mae', 'mase', 'smape'])