elliot.evaluation.metrics package

Subpackages

Submodules

elliot.evaluation.metrics.base_metric module

This is the implementation of the Precision metric. It proceeds from a user-wise computation, and average the values over the users.

class elliot.evaluation.metrics.base_metric.BaseMetric(recommendations, config, params, evaluation_objects, additional_data=None)[source]

Bases: abc.ABC

This class represents the implementation of the Precision recommendation metric. Passing ‘Precision’ to the metrics list will enable the computation of the metric.

eval()[source]
get()[source]
abstract name()[source]
static needs_full_recommendations()[source]

elliot.evaluation.metrics.metrics_utils module

class elliot.evaluation.metrics.metrics_utils.ProxyMetric(name='ProxyMetric', val=0, needs_full_recommendations=False)[source]

Bases: elliot.evaluation.metrics.base_metric.BaseMetric

eval()[source]
name()[source]
needs_full_recommendations()[source]
class elliot.evaluation.metrics.metrics_utils.ProxyStatisticalMetric(name='ProxyMetric', val=0, user_val=0, needs_full_recommendations=False)[source]

Bases: elliot.evaluation.metrics.base_metric.BaseMetric

eval()[source]
eval_user_metric()[source]
name()[source]
needs_full_recommendations()[source]

elliot.evaluation.metrics.statistical_array_metric module

This is the implementation of the Precision metric. It proceeds from a user-wise computation, and average the values over the users.

class elliot.evaluation.metrics.statistical_array_metric.StatisticalMetric[source]

Bases: object

This class represents the implementation of the Precision recommendation metric. Passing ‘Precision’ to the metrics list will enable the computation of the metric.

abstract eval_user_metric()[source]

Module contents

This is the metrics’ module.

This module contains and expose the recommendation metrics. Each metric is encapsulated in a specific package.

See the implementation of Precision metric for creating new per-user metrics. See the implementation of Item Coverage for creating new cross-user metrics.

elliot.evaluation.metrics.parse_metric(metric)[source]
elliot.evaluation.metrics.parse_metrics(metrics)[source]