factor_agent.evaluator.Metrics#
- class Metrics(ic_mean, ic_t, partial_ic_mean, partial_ic_t, nearest, nearest_correlation, nearest_known, nearest_known_correlation, decile_returns, coverage, n_days, start, end, pool_share=nan, overlaps=(), daily=None)[source]#
Bases:
objectA candidate’s training-segment statistics; see the module docstring.
nearestnames the pool factor most correlated with the candidate (empty, with a NaN correlation, when the pool is empty) andnearest_correlationis that mean correlation, with its sign.nearest_knownandnearest_known_correlationare the same for the known factors, on the sampled dates only (empty and NaN without known factors).pool_shareis the mean daily share of the candidate’s cross-sectional variance (of its normal scores) the pool explains, the part the partial IC leaves out (0 with an empty pool), andoverlapsthe pool factors most correlated with it,(name, correlation), the largest in absolute value first, at mostOVERLAPS.decile_returnsholds the mean label of each decile, lowest candidate values first.coverageis the mean daily share of the scored members with a value before any fill.dailyholds the daily series the means and t come from; the ledger leaves it out.
Methods#
Return the metrics as the ledger stores them, without the daily series. |
Attributes#
- Metrics.daily = None#
- Metrics.overlaps = ()#
- Metrics.ic_mean#
- Metrics.ic_t#
- Metrics.partial_ic_mean#
- Metrics.partial_ic_t#
- Metrics.nearest#
- Metrics.nearest_correlation#
- Metrics.nearest_known#
- Metrics.nearest_known_correlation#
- Metrics.decile_returns#
- Metrics.coverage#
- Metrics.n_days#
- Metrics.start#
- Metrics.end#