lenskit.metrics.Metric#
- class lenskit.metrics.Metric#
Bases:
ABCBase class for LensKit metrics. Individual metrics need to implement a sub-interface, such as
ListMetricand/orGlobalMetric.For simplicity in the analysis code, you cannot simply implement the properties of this class on an arbitrary class in order to implement a metric with all available behavior such as labeling and defaults; you must actually extend this class. This requirement may be relaxed in the future.
- Stability:
- Full (see Stability Levels).
- __init__()#
Methods
__init__()Attributes
The metric's default label in output.