ItemsFiltered Class Reference

Evaluation class for filtered item recommendation. More...

List of all members.

Static Public Member Functions

static
ItemRecommendationEvaluationResults 
EvaluateFiltered (this IRecommender recommender, IPosOnlyFeedback test, IPosOnlyFeedback train, SparseBooleanMatrix item_attributes, IList< int > test_users, IList< int > candidate_items, bool repeated_events=false)
 Evaluation for rankings of filtered items.
static Dictionary< int,
ICollection< int > > 
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.

Detailed Description

Evaluation class for filtered item recommendation.


Member Function Documentation

static ItemRecommendationEvaluationResults EvaluateFiltered ( this IRecommender  recommender,
IPosOnlyFeedback  test,
IPosOnlyFeedback  train,
SparseBooleanMatrix  item_attributes,
IList< int >  test_users,
IList< int >  candidate_items,
bool  repeated_events = false 
) [inline, static]

Evaluation for rankings of filtered items.

Parameters:
recommender item recommender
test test cases
train training data
item_attributes the item attributes to be used for filtering
test_users a collection of integers with all test users
candidate_items a collection of integers with all candidate items
repeated_events allow repeated events in the evaluation (i.e. items accessed by a user before may be in the recommended list)
Returns:
a dictionary containing the evaluation results
static Dictionary<int, ICollection<int> > GetFilteredItems ( int  user_id,
IPosOnlyFeedback  test,
SparseBooleanMatrix  item_attributes 
) [inline, static]

For a given user and the test dataset, return a dictionary of items filtered by attributes.

Parameters:
user_id the user ID
test the test dataset
item_attributes 
Returns:
a dictionary containing a mapping from attribute IDs to collections of item IDs

The documentation for this class was generated from the following file:
Generated on Mon Nov 28 19:18:45 2011 for MyMediaLite by  doxygen 1.6.3