MyMediaLite
ItemPredictionEval.NDCG Method (int[], ICollection<int>)
Syntax
Collapse All
Compute the normalized discounted cumulative gain (NDCG) of a list of ranked items.
Declaring type:
ItemPredictionEval
Namespace:
MyMediaLite.Eval
Assembly:
MyMediaLite
Syntax
C#
public static double NDCG ( int[]
ranked_items
, ICollection<int>
correct_items
)
Parameters
ranked_items
a list of ranked item IDs, the highest-ranking item first
correct_items
a collection of positive/correct item IDs
Return Value
the NDCG for the given data
Top
Generated by
ImmDoc .NET
.