numeraire.core.engine.PanelWeightsOutput#
- class numeraire.core.engine.PanelWeightsOutput(weights: Series, realized: Series, method: str, config_hash: str, data_vintage: str, run_id: str, capability: str = 'to_weights', meta: dict[str, ~typing.Any]=<factory>, missing_returns: Literal['error', 'zero', 'renormalize_legs']='error', horizon: int = 1)[source]#
Bases:
objectOOS output for a cross-sectional
to_weightsmethod over a ragged panel.weightsandrealizedare longpd.Serieson a(date, asset)MultiIndex; the wide, fixed-universeWeightsOutputcan’t represent an entering/exiting universe, so the panel path carries the long form.realizedis each name’s(t, t+h]return, aligned by key.weightsalways remains the model’s target decision;scoring_weights()separately exposes any ex-post adjustment selected throughmissing_returns.- __init__(weights: Series, realized: Series, method: str, config_hash: str, data_vintage: str, run_id: str, capability: str = 'to_weights', meta: dict[str, ~typing.Any]=<factory>, missing_returns: Literal['error', 'zero', 'renormalize_legs']='error', horizon: int = 1) None#
Methods
__init__(weights, realized, method, ...)Effective ex-post weights used only to score returns under
missing_returns.Cross-sectional portfolio return per date under the missing-return policy.
Attributes
capabilityEffective forecast horizon
hof the paired targets (steps of the decision calendar).missing_returnsCompact universe label (
n=<#assets>over the OOS panel; the name if single).weightsrealizedmethodconfig_hashdata_vintagerun_idmeta- horizon: int = 1#
Effective forecast horizon
hof the paired targets (steps of the decision calendar).Populated by
backtest_panel()from the producing view;realizedis each name’s(t, t+h]return, so an annualizing evaluator can distinguish overlapping multi-period targets.
- property universe: str#
Compact universe label (
n=<#assets>over the OOS panel; the name if single).