elliot.evaluation.metrics.rating.mae package¶
Submodules¶
elliot.evaluation.metrics.rating.mae.mae module¶
This is the implementation of the Mean Absolute Error metric. It proceeds from a system-wise computation.
-
class
elliot.evaluation.metrics.rating.mae.mae.
MAE
(recommendations, config, params, eval_objects)[source]¶ Bases:
elliot.evaluation.metrics.base_metric.BaseMetric
Mean Absolute Error
This class represents the implementation of the Mean Absolute Error recommendation metric.
For further details, please refer to the link
\[\mathrm{MAE}=\frac{1}{|{T}|} \sum_{(u, i) \in {T}}\left|\hat{r}_{u i}-r_{u i}\right|\]\(T\) is the test set, \(\hat{r}_{u i}\) is the score predicted by the model,
To compute the metric, add it to the config file adopting the following pattern:
simple_metrics: [MAE]