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

Normalized discounted cumulative gain (NDCG) of a list of ranked items More...

Static Public Member Functions

static double Compute (IList< int > ranked_items, ICollection< int > correct_items)
 Compute the normalized discounted cumulative gain (NDCG) of a list of ranked items More...
 

Detailed Description

Normalized discounted cumulative gain (NDCG) of a list of ranked items

See http://recsyswiki.com/wiki/Discounted_Cumulative_Gain

Member Function Documentation

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

Compute the normalized discounted cumulative gain (NDCG) of a list of ranked items

See http://recsyswiki.com/wiki/Discounted_Cumulative_Gain

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

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