Evaluation class for filtered item recommendation. More...
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. |
Evaluation class for filtered item recommendation.
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.
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) |
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.
user_id | the user ID | |
test | the test dataset | |
item_attributes |