Evaluation¶
- class omnicast.Backtester(horizon=1, initial=None, step=1, metric='rmse')[source]¶
Bases:
objectExpanding-window rolling-origin backtest.
- run(model, y)[source]¶
Evaluate
modelon expanding-window temporal splits ofy.- Returns:
Fold scores (cutoff, score, n_train) in .scores, per-step out-of-sample predictions in .predictions, plus .summary()/.plot().
- Return type:
- Raises:
ValueError – If initial and horizon leave no validation observations.
- Parameters:
model (BaseForecaster)