org.mymedialite.eval
Class Groups

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

public class Groups
extends java.lang.Object

Evaluation class for group recommendation.


Method Summary
static ItemRecommendationEvaluationResults evaluate(GroupRecommender recommender, IPosOnlyFeedback test, IPosOnlyFeedback train, SparseBooleanMatrix group_to_user, java.util.Collection<java.lang.Integer> candidate_items, boolean ignore_overlap)
          Evaluation for rankings of items recommended to groups.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

evaluate

public static ItemRecommendationEvaluationResults evaluate(GroupRecommender recommender,
                                                           IPosOnlyFeedback test,
                                                           IPosOnlyFeedback train,
                                                           SparseBooleanMatrix group_to_user,
                                                           java.util.Collection<java.lang.Integer> candidate_items,
                                                           boolean ignore_overlap)
                                                    throws java.lang.Exception
Evaluation for rankings of items recommended to groups.

Parameters:
recommender - group recommender
test - test cases
train - training data
group_to_user - group to user relation
candidate_items - a collection of integers with all candidate items
ignore_overlap - if true, ignore items that appear for a group in the training set when evaluating for that user
Returns:
a dictionary containing the evaluation results
Throws:
java.lang.Exception