C# Class MyMediaLite.Eval.ItemsFiltered

Evaluation class for filtered item recommendation
Exibir arquivo Open project: zenogantner/MML-KDD

Public Methods

Method Description
Evaluate ( IItemRecommender recommender, IPosOnlyFeedback test, IPosOnlyFeedback train, SparseBooleanMatrix item_attributes, ICollection relevant_users, ICollection relevant_items ) : double>.Dictionary

Evaluation for rankings of filtered items

GetFilteredItems ( int user_id, IPosOnlyFeedback test, SparseBooleanMatrix item_attributes ) : ICollection>.Dictionary

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

Method Details

Evaluate() public static method

Evaluation for rankings of filtered items
public static Evaluate ( IItemRecommender recommender, IPosOnlyFeedback test, IPosOnlyFeedback train, SparseBooleanMatrix item_attributes, ICollection relevant_users, ICollection relevant_items ) : double>.Dictionary
recommender IItemRecommender item recommender
test IPosOnlyFeedback test cases
train IPosOnlyFeedback training data
item_attributes MyMediaLite.DataType.SparseBooleanMatrix the item attributes to be used for filtering
relevant_users ICollection a collection of integers with all relevant users
relevant_items ICollection a collection of integers with all relevant items
return double>.Dictionary

GetFilteredItems() public static method

For a given user and the test dataset, return a dictionary of items filtered by attributes
public static GetFilteredItems ( int user_id, IPosOnlyFeedback test, SparseBooleanMatrix item_attributes ) : ICollection>.Dictionary
user_id int the user ID
test IPosOnlyFeedback the test dataset
item_attributes MyMediaLite.DataType.SparseBooleanMatrix
return ICollection>.Dictionary