recommenders / rival

RiVal recommender system evaluation toolkit
rival.recommenders.net
Apache License 2.0
150 stars 40 forks source link

Generalized DataModel for error and ranking evaluation metrics #88

Closed aleSuglia closed 9 years ago

aleSuglia commented 9 years ago

The DataModel definition grants to use a generic type of identifiers for users and items. This capability is not used in the previous version, in which, a specific type was used (Long).

The aim of this PR is to generify the evaluation metrics that uses the DataModel for predictions and test ratings, in order to be able to work with generic type of identifier according to the user needs.

A single test case has been added that simply shows how to use the metrics with generic parameters. Furthermore has been inserted some javadoc tag in order to document the generics type parameters for AbstractMetric, AbstractRankingMetric and AbstractErrorMetric.

abellogin commented 9 years ago

Thank you, Alessandro. I have checked the commits and they look good and seem to fix issue #87