bayesline.api.equity.MetricDescriptor#
- model MetricDescriptor#
What a metric column means and how it may be aggregated and combined.
Fields# Field
Type
Required
Default
No
factory
No
NoneNo
NoneYes
No
factory
Yes
No
NoneNo
factory
Literal[‘diverging’, ‘sequential’, ‘none’]No
'none'Literal[‘compound’, ‘sum’, ‘last’, ‘mean’, ‘none’]Yes
Yes
- field additive_over: list[str] [Optional]#
Dimensions over which a group’s value equals the sum of its members’ values, so members may be stacked to reproduce the group.
- field domain: tuple[float, float] | None [Optional]#
A fixed natural domain, such as [-1, 1] for a correlation.
- field family: MetricFamily | None [Optional]#
The portfolio / benchmark / active family the metric belongs to.
- field leaf_only_over: list[str] [Optional]#
Dimensions over which the metric is defined for leaf members only; groups carry no value.
- field qualifiers: UnitQualifiers [Optional]#
Refinements of the unit that also govern axis sharing.
- field sign: Literal['diverging', 'sequential', 'none'] [Optional]#
Colour semantics: diverging around zero, sequential from zero, or neither.