MyMediaLite  3.11
Static Public Member Functions | List of all members
ReciprocalRank Class Reference

The reciprocal rank of a list of ranked items More...

Static Public Member Functions

static double Compute (IList< int > ranked_items, ICollection< int > correct_items)
 Compute the reciprocal rank of a list of ranked items More...
 

Detailed Description

The reciprocal rank of a list of ranked items

See http://en.wikipedia.org/wiki/Mean_reciprocal_rank

Literature:

Member Function Documentation

static double Compute ( IList< int >  ranked_items,
ICollection< int >  correct_items 
)
inlinestatic

Compute the reciprocal rank of a list of ranked items

See http://en.wikipedia.org/wiki/Mean_reciprocal_rank

Parameters
ranked_itemsa list of ranked item IDs, the highest-ranking item first
correct_itemsa collection of positive/correct item IDs
Returns
the mean reciprocal rank for the given data

The documentation for this class was generated from the following file: