langfair.metrics.recommendation.metrics.baseclass.metrics.Metric#

class langfair.metrics.recommendation.metrics.baseclass.metrics.Metric#

Bases: ABC

Abstract base class of all recommendation metrics. Serves as a template for creating new metric functions.

__init__()#

Methods

__init__()

evaluate(list1, list2)

Abstract method that needs to be implemented by the user when creating a new metric function.

abstract evaluate(list1, list2)#

Abstract method that needs to be implemented by the user when creating a new metric function.

Return type:

float