numeraire.core.engine.ForecastOutput#
- class numeraire.core.engine.ForecastOutput(forecasts: DataFrame, realized: DataFrame, benchmark: DataFrame, method: str, config_hash: str, data_vintage: str, run_id: str, capability: str = 'to_forecast', meta: dict[str, ~typing.Any]=<factory>)[source]#
Bases:
objectOOS output for a
to_forecastmethod: per-origin forecast, realized return, benchmark.All three are
(origin x asset)indexed by the forecast origint:forecasts.loc[t]predicts the return over(t, t+h],realized.loc[t]is that realized return, andbenchmark.loc[t]is the prevailing/window historical-mean forecast the engine computes for free at each origin (the Goyal-Welch OOS R^2 reference).- __init__(forecasts: DataFrame, realized: DataFrame, benchmark: DataFrame, method: str, config_hash: str, data_vintage: str, run_id: str, capability: str = 'to_forecast', meta: dict[str, ~typing.Any]=<factory>) None#
Methods
__init__(forecasts, realized, benchmark, ...)Attributes
capabilityCompact universe label (
n=<#assets>for panels, the name for a single asset).forecastsrealizedbenchmarkmethodconfig_hashdata_vintagerun_idmeta