numeraire.baselines.HistoricalMean#
- class numeraire.baselines.HistoricalMean(*, window: int | None = None)[source]#
Bases:
objectThe prevailing-historical-mean forecaster (Goyal-Welch benchmark).
- Parameters:
window – Trailing window (in calendar steps) for the mean;
None(default) is the expanding prevailing mean — the same quantity the walk-forward engine uses as its OOS R^2 benchmark.
Methods
__init__(*[, window])fit(view)