C# Class MyMediaLite.RatingPrediction.Prediction

Class that contains static methods for rating prediction
Mostra file Open project: zenogantner/MML-KDD

Public Methods

Method Description
WritePredictions ( IRatingPredictor recommender, IRatings ratings, IEntityMapping user_mapping, IEntityMapping item_mapping, TextWriter writer ) : void

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

WritePredictions ( IRatingPredictor recommender, IRatings ratings, IEntityMapping user_mapping, IEntityMapping item_mapping, string filename ) : void

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

WritePredictions ( IRatingPredictor recommender, IRatings ratings, IEntityMapping user_mapping, IEntityMapping item_mapping, string line_format, TextWriter writer ) : void

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

WritePredictions ( IRatingPredictor recommender, IRatings ratings, IEntityMapping user_mapping, IEntityMapping item_mapping, string line_format, string filename ) : void

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

Method Details

WritePredictions() public static method

Rate a given set of instances and write it to a TextWriter
public static WritePredictions ( IRatingPredictor recommender, IRatings ratings, IEntityMapping user_mapping, IEntityMapping item_mapping, TextWriter writer ) : void
recommender IRatingPredictor rating predictor
ratings IRatings test cases
user_mapping IEntityMapping an object for the user IDs
item_mapping IEntityMapping an object for the item IDs
writer System.IO.TextWriter the TextWriter to write the predictions to
return void

WritePredictions() public static method

Rate a given set of instances and write it to a file
public static WritePredictions ( IRatingPredictor recommender, IRatings ratings, IEntityMapping user_mapping, IEntityMapping item_mapping, string filename ) : void
recommender IRatingPredictor rating predictor
ratings IRatings test cases
user_mapping IEntityMapping an object for the user IDs
item_mapping IEntityMapping an object for the item IDs
filename string the name of the file to write the predictions to
return void

WritePredictions() public static method

Rate a given set of instances and write it to a TextWriter
public static WritePredictions ( IRatingPredictor recommender, IRatings ratings, IEntityMapping user_mapping, IEntityMapping item_mapping, string line_format, TextWriter writer ) : void
recommender IRatingPredictor rating predictor
ratings IRatings test cases
user_mapping IEntityMapping an object for the user IDs
item_mapping IEntityMapping an object for the item IDs
line_format string a format string specifying the line format; {0} is the user ID, {1} the item ID, {2} the rating
writer System.IO.TextWriter the TextWriter to write the predictions to
return void

WritePredictions() public static method

Rate a given set of instances and write it to a file
public static WritePredictions ( IRatingPredictor recommender, IRatings ratings, IEntityMapping user_mapping, IEntityMapping item_mapping, string line_format, string filename ) : void
recommender IRatingPredictor rating predictor
ratings IRatings test cases
user_mapping IEntityMapping an object for the user IDs
item_mapping IEntityMapping an object for the item IDs
line_format string a format string specifying the line format; {0} is the user ID, {1} the item ID, {2} the rating
filename string the name of the file to write the predictions to
return void