MetricAtK

class rectools.metrics.base.MetricAtK(k: int)[source]

Bases: object

Base class of metrics that depends on k - a number of top recommendations used to calculate a metric.

Warning: This class should not be used directly. Use derived classes instead.

Parameters

k (int) – Number of items at the top of recommendations list that will be used to calculate metric.

Inherited-members

Attributes

k