Method | Description | |
---|---|---|
LoadModel ( string filename ) : void | ||
NewKNN ( ) : System |
Constructor
|
|
Predict ( int user_id, int item_id ) : double |
Predict the rating of a given user for a given item If the user or the item are not known to the recommender, a suitable average rating is returned. To avoid this behavior for unknown entities, use CanPredict() to check before. |
|
SaveModel ( string filename ) : void | ||
ToString ( ) : string | ||
Train ( ) : void |
Method | Description | |
---|---|---|
CreateSimilarityMatrix ( string typename ) : void |
public Predict ( int user_id, int item_id ) : double | ||
user_id | int | the user ID |
item_id | int | the item ID |
return | double |