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>)[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.- __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>) None#
Methods
__init__(weights, realized, method, ...)Cross-sectional portfolio return per date:
sum_a weights[t, a] * realized[t, a].Attributes
capabilityCompact universe label (
n=<#assets>over the OOS panel; the name if single).weightsrealizedmethodconfig_hashdata_vintagerun_idmeta