numeraire.backtest_panel#
- numeraire.backtest_panel(estimator: Estimator, view: CrossSectionView, splitter: Any, *, method: str, config: dict[str, Any] | None = None, data_vintage: str = 'unknown', run_id: str | None = None, n_jobs: int = 1) PanelWeightsOutput[source]#
Walk-forward OOS backtest of a cross-sectional
to_weightsestimator over a ragged panel.Mirrors
backtest_weights()but forCrossSectionView: the fitted model returns long(date, asset)weights, realized forward returns are aligned by key (so an entering/exiting universe is handled), and any name whose horizon is unrealized in-view (or that delists first) is dropped before scoring. The time-series engine is left untouched.n_jobsfans the folds over a thread pool (-1= all cores); order-preserving, so identical output.