Evaluation for rankings of item recommenders
Declaring type: ItemPredictionEval
Namespace: MyMediaLite.Eval
Assembly: MyMediaLite
Collapse/Expand Syntax
C#
public static Dictionary<string, double> Evaluate (
        IItemRecommender engine,
        PosOnlyFeedback test,
        PosOnlyFeedback train,
        ICollection<int> relevant_users,
        ICollection<int> relevant_items
) 
Parameters
engine
Item recommender engine
test
test cases
train
training data
relevant_users
a collection of integers with all relevant items
relevant_items
a collection of integers with all relevant items
Return Value
a dictionary containing the evaluation results
Collapse/Expand Remarks
User-item combinations that appear in both sets are ignored for the test set, and thus in the evaluation. The evaluation measures are listed in the ItemPredictionMeasures property. Additionally, 'num_users' and 'num_items' report the number of users that were used to compute the results and the number of items that were taken into account. Literature: C. Manning, P. Raghavan, H. Schütze: Introduction to Information Retrieval, Cambridge University Press, 2008