MyMediaLite  3.08
Static Public Member Functions
Extensions Class Reference

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

List of all members.

Static Public Member Functions

static void WritePredictions (this IRecommender recommender, IRatings ratings, TextWriter writer, IMapping user_mapping=null, IMapping item_mapping=null, string line_format="{0}\t{1}\t{2}", string header=null)
 Rate a given set of instances and write it to a TextWriter.
static void WritePredictions (this IRecommender recommender, IRatings ratings, string filename, IMapping user_mapping=null, IMapping item_mapping=null, string line_format="{0}\t{1}\t{2}", string header=null)
 Rate a given set of instances and write it to a file.

Detailed Description

Class that contains static methods for rating prediction.


Member Function Documentation

static void WritePredictions ( this IRecommender  recommender,
IRatings  ratings,
TextWriter  writer,
IMapping  user_mapping = null,
IMapping  item_mapping = null,
string  line_format = "{0}\t{1}\t{2}",
string  header = null 
) [inline, static]

Rate a given set of instances and write it to a TextWriter.

Parameters:
recommenderrating predictor
ratingstest cases
writerthe TextWriter to write the predictions to
user_mappingan Mapping object for the user IDs
item_mappingan Mapping object for the item IDs
line_formata format string specifying the line format; {0} is the user ID, {1} the item ID, {2} the rating
headerif specified, write this string at the start of the output
static void WritePredictions ( this IRecommender  recommender,
IRatings  ratings,
string  filename,
IMapping  user_mapping = null,
IMapping  item_mapping = null,
string  line_format = "{0}\t{1}\t{2}",
string  header = null 
) [inline, static]

Rate a given set of instances and write it to a file.

Parameters:
recommenderrating predictor
ratingstest cases
filenamethe name of the file to write the predictions to
user_mappingan Mapping object for the user IDs
item_mappingan Mapping object for the item IDs
line_formata format string specifying the line format; {0} is the user ID, {1} the item ID, {2} the rating
headerif specified, write this string to the first line

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