Property | Type | Description | |
---|---|---|---|
data_user |
Method | Description | |
---|---|---|
AddRating ( int user_id, int item_id, double rating ) : void | ||
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. |
|
RemoveRating ( int user_id, int item_id ) : void | ||
UpdateRating ( int user_id, int item_id, double rating ) : void | ||
UserKNN ( ) : System |
Method | Description | |
---|---|---|
AddUser ( int user_id ) : void |
public AddRating ( int user_id, int item_id, double rating ) : void | ||
user_id | int | |
item_id | int | |
rating | double | |
return | void |
public Predict ( int user_id, int item_id ) : double | ||
user_id | int | the user ID |
item_id | int | the item ID |
return | double |
public RemoveRating ( int user_id, int item_id ) : void | ||
user_id | int | |
item_id | int | |
return | void |
public UpdateRating ( int user_id, int item_id, double rating ) : void | ||
user_id | int | |
item_id | int | |
rating | double | |
return | void |