ReciprocalRank Class Reference

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

List of all members.

Static Public Member Functions

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

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,
ICollection< int >  ignore_items = null 
) [inline, static]

Compute the reciprocal rank of a list of ranked items.

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

Parameters:
ranked_items a list of ranked item IDs, the highest-ranking item first
correct_items a collection of positive/correct item IDs
ignore_items a collection of item IDs which should be ignored for the evaluation
Returns:
the mean reciprocal rank for the given data

The documentation for this class was generated from the following file:
Generated on Mon Nov 28 19:18:46 2011 for MyMediaLite by  doxygen 1.6.3