|
MyMediaLite
3.02
|
Class that contains static methods for rating prediction. More...
Static Public Member Functions | |
| static void | WritePredictions (this IRecommender recommender, IRatings ratings, TextWriter writer, IEntityMapping user_mapping=null, IEntityMapping 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, IEntityMapping user_mapping=null, IEntityMapping 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. | |
Class that contains static methods for rating prediction.
| static void WritePredictions | ( | this IRecommender | recommender, |
| IRatings | ratings, | ||
| TextWriter | writer, | ||
| IEntityMapping | user_mapping = null, |
||
| IEntityMapping | 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.
| recommender | rating predictor |
| ratings | test cases |
| writer | the TextWriter to write the predictions to |
| user_mapping | an EntityMapping object for the user IDs |
| item_mapping | an EntityMapping object for the item IDs |
| line_format | a format string specifying the line format; {0} is the user ID, {1} the item ID, {2} the rating |
| header | if specified, write this string at the start of the output |
| static void WritePredictions | ( | this IRecommender | recommender, |
| IRatings | ratings, | ||
| string | filename, | ||
| IEntityMapping | user_mapping = null, |
||
| IEntityMapping | 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.
| recommender | rating predictor |
| ratings | test cases |
| filename | the name of the file to write the predictions to |
| user_mapping | an EntityMapping object for the user IDs |
| item_mapping | an EntityMapping object for the item IDs |
| line_format | a format string specifying the line format; {0} is the user ID, {1} the item ID, {2} the rating |
| header | if specified, write this string to the first line |
1.7.6.1