numeraire.core.engine#
Walk-forward OOS engine. The most-reused, most-bug-prone, method-agnostic core.
The driver is deliberately small: for each (train, test) fold it fits the estimator on the
train view and asks the fitted model for its capability output on the test view, then computes
realized P&L from the original full view so the model never touches future returns. Output
is one tidy container carrying the preprocessing/vintage provenance every result row needs
(config_hash + data_vintage).
Naming convention: *Output classes (WeightsOutput, ForecastOutput, PricingOutput,
PanelWeightsOutput) are the engine’s capability artifacts — the OOS panels an Evaluator
consumes to produce result rows. *Result classes elsewhere (SimulationResult,
SortResult, the stats *Result records) are the return values of one-shot computations.
If it feeds an evaluator it is an Output; if it is a computed answer it is a Result.
Backtest |
|
Run a walk-forward OOS backtest of a |
|
Walk-forward OOS backtest of a cross-sectional |
|
Walk-forward pseudo-OOS forecast (forecast-origin convention; GW2008 / 1-A / VoC). |
|
Walk-forward OOS pricing of a |
|
In-sample pricing: one full-sample fit, expected returns over the whole view ( |
|
Stable short hash of a JSON-serializable config dict (preprocessing provenance). |
|
OOS output for a |
|
OOS output for a cross-sectional |
|
OOS output for a |
|
Output for a |