numeraire.core.engine.PricingOutput#
- class numeraire.core.engine.PricingOutput(predicted: DataFrame, realized: DataFrame, method: str, config_hash: str, data_vintage: str, run_id: str, protocol: str, capability: str = 'to_pricing', meta: dict[str, ~typing.Any]=<factory>)[source]#
Bases:
objectOutput for a
to_pricingmethod: predicted expected returns vs realized, on test assets.predictedandrealizedare both(date x asset):predicted.loc[t]is the model’s cross-section of expected returns for the return realized over(t, t+h]andrealized.loc[t]is that realized return (nanfor an asset absent / not yet realized att).protocolrecords the discipline the panels were produced under —"walk_forward"(per-fold PIT refits,backtest_pricing()) or"in_sample"(one full-sample fit,backtest_pricing_in_sample()) — and flows straight through to every result row so an explanatory in-sample R^2 stays distinguishable from an out-of-sample one.- __init__(predicted: DataFrame, realized: DataFrame, method: str, config_hash: str, data_vintage: str, run_id: str, protocol: str, capability: str = 'to_pricing', meta: dict[str, ~typing.Any]=<factory>) None#
Methods
__init__(predicted, realized, method, ...)Attributes
capabilityCompact universe label (
n=<#assets>for panels, the name for a single asset).predictedrealizedmethodconfig_hashdata_vintagerun_idprotocolmeta