MyMediaLite  3.02
Static Public Member Functions
Extensions Class Reference

Class that contains static methods for item prediction. More...

List of all members.

Static Public Member Functions

static void WritePredictions (this IRecommender recommender, IPosOnlyFeedback train, System.Collections.Generic.IList< int > candidate_items, int num_predictions, string filename, System.Collections.Generic.IList< int > users=null, IEntityMapping user_mapping=null, IEntityMapping item_mapping=null)
 Write item predictions (scores) to a file.
static void WritePredictions (this IRecommender recommender, IPosOnlyFeedback train, System.Collections.Generic.IList< int > candidate_items, int num_predictions, TextWriter writer, System.Collections.Generic.IList< int > users=null, IEntityMapping user_mapping=null, IEntityMapping item_mapping=null)
 Write item predictions (scores) to a TextWriter object.
static void WritePredictions (this IRecommender recommender, int user_id, System.Collections.Generic.IList< int > candidate_items, System.Collections.Generic.ICollection< int > ignore_items, int num_predictions, TextWriter writer, IEntityMapping user_mapping, IEntityMapping item_mapping)
 Write item predictions (scores) to a TextWriter object.

Detailed Description

Class that contains static methods for item prediction.


Member Function Documentation

static void WritePredictions ( this IRecommender  recommender,
IPosOnlyFeedback  train,
System.Collections.Generic.IList< int >  candidate_items,
int  num_predictions,
string  filename,
System.Collections.Generic.IList< int >  users = null,
IEntityMapping  user_mapping = null,
IEntityMapping  item_mapping = null 
) [inline, static]

Write item predictions (scores) to a file.

Parameters:
recommenderthe IRecommender to use for making the predictions
traina user-wise IPosOnlyFeedback containing the items already observed
candidate_itemslist of candidate items
num_predictionsnumber of items to return per user, -1 if there should be no limit
filenamethe name of the file to write to
usersa list of users to make recommendations for
user_mappingan IEntityMapping object for the user IDs
item_mappingan IEntityMapping object for the item IDs
static void WritePredictions ( this IRecommender  recommender,
IPosOnlyFeedback  train,
System.Collections.Generic.IList< int >  candidate_items,
int  num_predictions,
TextWriter  writer,
System.Collections.Generic.IList< int >  users = null,
IEntityMapping  user_mapping = null,
IEntityMapping  item_mapping = null 
) [inline, static]

Write item predictions (scores) to a TextWriter object.

Parameters:
recommenderthe IRecommender to use for making the predictions
traina user-wise IPosOnlyFeedback containing the items already observed
candidate_itemslist of candidate items
num_predictionsnumber of items to return per user, -1 if there should be no limit
writerthe TextWriter to write to
usersa list of users to make recommendations for; if null, all users in train will be provided with recommendations
user_mappingan IEntityMapping object for the user IDs
item_mappingan IEntityMapping object for the item IDs
static void WritePredictions ( this IRecommender  recommender,
int  user_id,
System.Collections.Generic.IList< int >  candidate_items,
System.Collections.Generic.ICollection< int >  ignore_items,
int  num_predictions,
TextWriter  writer,
IEntityMapping  user_mapping,
IEntityMapping  item_mapping 
) [inline, static]

Write item predictions (scores) to a TextWriter object.

Parameters:
recommenderthe IRecommender to use for making the predictions
user_idID of the user to make recommendations for
candidate_itemslist of candidate items
ignore_itemslist of items for which no predictions should be made
num_predictionsthe number of items to return per user, -1 if there should be no limit
writerthe TextWriter to write to
user_mappingan IEntityMapping object for the user IDs
item_mappingan IEntityMapping object for the item IDs

The documentation for this class was generated from the following file: