Predict the rating of a given user for a given item.
Declaring type: ItemKNN
Namespace: MyMediaLite.RatingPredictor
Assembly: MyMediaLite
Collapse/Expand Syntax
C#
public override double Predict (
        int user_id,
        int item_id
) 
Parameters
user_id
the user ID
item_id
the item ID
Return Value
the predicted rating
Collapse/Expand Remarks
If the user or the item are not known to the engine, a suitable average is returned. To avoid this behavior for unknown entities, use CanPredict() to check before.