lenskit.metrics.ListMetric#
- class lenskit.metrics.ListMetric#
Bases:
Metric
Base class for metrics that measure individual recommendation (or prediction) lists, and whose results may be aggregated to compute overall metrics.
For prediction metrics, this is macro-averaging.
- __init__()#
Methods
__init__
()measure_list
(output, test, /)Compute the metric value for a single result list.
Attributes
The default value to infer when computing statistics over missing values.
label
The metric's default label in output.