org.mymedialite.eval
Class ItemsOnline

java.lang.Object
  extended by org.mymedialite.eval.ItemsOnline

public class ItemsOnline
extends java.lang.Object

Online evaluation for rankings of items


Constructor Summary
ItemsOnline()
           
 
Method Summary
static java.util.HashMap<java.lang.String,java.lang.Double> evaluate(IRecommender recommender, IPosOnlyFeedback test, IPosOnlyFeedback training, java.util.List<java.lang.Integer> test_users, java.util.List<java.lang.Integer> candidate_items, CandidateItems candidate_item_mode)
          Online evaluation for rankings of items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ItemsOnline

public ItemsOnline()
Method Detail

evaluate

public static java.util.HashMap<java.lang.String,java.lang.Double> evaluate(IRecommender recommender,
                                                                            IPosOnlyFeedback test,
                                                                            IPosOnlyFeedback training,
                                                                            java.util.List<java.lang.Integer> test_users,
                                                                            java.util.List<java.lang.Integer> candidate_items,
                                                                            CandidateItems candidate_item_mode)
Online evaluation for rankings of items.

Parameters:
recommender - the item recommender to be evaluated
test - test cases
training - training data (must be connected to the recommender's training data)
test_users - a list of all test user IDs
candidate_items - a list of all candidate item IDs
candidate_item_mode - the mode used to determine the candidate items
Returns:
a dictionary containing the evaluation results (averaged by user)