Documentation
Tuning with Optuna
Use chronological validation folds to tune seasonal and trend parameters for a rate forecast.
Hold the timeline fixed
Reserve a final holdout. Within the earlier observations, fit on an initial window and evaluate on the next block. Advance the forecast origin and repeat. Use the same fold boundaries for every candidate model.
Tune against forecast error
The published retail example tunes the number of harmonics, a possible quarterly cycle, and changepoint parameters. It uses 6-month validation horizons with a 3-month step and reserves the final 24 months for evaluation.
Record the scale
The retail script models the inverse inventories-to-sales ratio. Record the transformation and forecast horizon alongside RMSE so others can interpret the reported error.