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