elliot.evaluation.metrics.coverage.user_coverage package

Submodules

elliot.evaluation.metrics.coverage.user_coverage.user_coverage module

This is the implementation of the User Coverage metric. It directly proceeds from a system-wise computation, and it considers all the users at the same time.

class elliot.evaluation.metrics.coverage.user_coverage.user_coverage.UserCoverage(recommendations, config, params, eval_objects)[source]

Bases: elliot.evaluation.metrics.base_metric.BaseMetric

User Coverage

This class represents the implementation of the User Coverage recommendation metric.

For further details, please refer to the book

Note

The proportion of users or user interactions for which the system can recommend items. In many applications the recommender may not provide recommendations for some users due to, e.g. low confidence in the accuracy of predictions for that user.

To compute the metric, add it to the config file adopting the following pattern:

simple_metrics: [UserCoverage]
eval()[source]

Evaluation function :return: the overall averaged value of User Coverage

static name()[source]

Metric Name Getter :return: returns the public name of the metric

elliot.evaluation.metrics.coverage.user_coverage.user_coverage_at_n module

This is the implementation of the User Coverage metric. It directly proceeds from a system-wise computation, and it considers all the users at the same time.

class elliot.evaluation.metrics.coverage.user_coverage.user_coverage_at_n.UserCoverageAtN(recommendations, config, params, eval_objects)[source]

Bases: elliot.evaluation.metrics.base_metric.BaseMetric

User Coverage on Top-N rec. Lists

This class represents the implementation of the User Coverage recommendation metric.

For further details, please refer to the book

To compute the metric, add it to the config file adopting the following pattern:

simple_metrics: [UserCoverageAtN]
eval()[source]

Evaluation function :return: the overall averaged value of User Coverage

static name()[source]

Metric Name Getter :return: returns the public name of the metric

Module contents