Write item predictions (scores) to a TextWriter object
Declaring type: ItemPrediction
Namespace: MyMediaLite.Eval
Assembly: MyMediaLite
Collapse/Expand Syntax
C#
public static void WritePredictions (
        IRecommender recommender,
        PosOnlyFeedback train,
        IList<int> relevant_users,
        ICollection<int> relevant_items,
        int num_predictions,
        EntityMapping user_mapping,
        EntityMapping item_mapping,
        TextWriter writer
) 
Parameters
recommender
the IRecommender to use for making the predictions
train
a user-wise PosOnlyFeedback containing the items already observed
relevant_users
a list of users to make recommendations for
relevant_items
the list of candidate items
num_predictions
the number of items to return per user, -1 if there should be no limit
user_mapping
an EntityMapping object for the user IDs
item_mapping
an EntityMapping object for the item IDs
writer
the System.IO.TextWriter to write to