|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mymedialite.eval.ItemsFiltered
public class ItemsFiltered
Evaluation class for filtered item recommendation.
Method Summary | |
---|---|
static ItemRecommendationEvaluationResults |
evaluateFiltered(IRecommender recommender,
IPosOnlyFeedback test,
IPosOnlyFeedback train,
SparseBooleanMatrix item_attributes,
java.util.List<java.lang.Integer> test_users,
java.util.List<java.lang.Integer> candidate_items,
boolean repeated_events)
Evaluation for rankings of filtered items. |
static java.util.HashMap<java.lang.Integer,java.util.Collection<java.lang.Integer>> |
getFilteredItems(int user_id,
IPosOnlyFeedback test,
SparseBooleanMatrix item_attributes)
For a given user and the test dataset, return a dictionary of items filtered by attributes. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static java.util.HashMap<java.lang.Integer,java.util.Collection<java.lang.Integer>> getFilteredItems(int user_id, IPosOnlyFeedback test, SparseBooleanMatrix item_attributes)
user_id
- the user IDtest
- the test datasetitem_attributes
-
public static ItemRecommendationEvaluationResults evaluateFiltered(IRecommender recommender, IPosOnlyFeedback test, IPosOnlyFeedback train, SparseBooleanMatrix item_attributes, java.util.List<java.lang.Integer> test_users, java.util.List<java.lang.Integer> candidate_items, boolean repeated_events) throws java.lang.Exception
recommender
- item recommendertest
- test casestrain
- training dataitem_attributes
- the item attributes to be used for filteringtest_users
- a collection of integers with all test userscandidate_items
- a collection of integers with all candidate itemsrepeated_events
- allow repeated events in the evaluation (i.e. items accessed by a user before may be in the recommended list)
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |