프로퍼티 | 타입 | 설명 | |
---|---|---|---|
global_bias | double | ||
item_factors | Matrix |
||
user_factors | Matrix |
메소드 | 설명 | |
---|---|---|
AddRating ( int user_id, int item_id, double rating ) : void | ||
ComputeFit ( ) : double | ||
ComputeLoss ( ) : double |
Compute the regularized loss
|
|
Iterate ( ) : void | ||
LoadModel ( string filename ) : void | ||
MatrixFactorization ( ) : System |
Default 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, the global average is returned. To avoid this behavior for unknown entities, use CanPredict() to check before. |
|
RemoveItem ( int item_id ) : void | ||
RemoveRating ( int user_id, int item_id ) : void | ||
RemoveUser ( int user_id ) : void | ||
RetrainItem ( int item_id ) : void |
Updates the latent factors of an item
|
|
RetrainUser ( int user_id ) : void |
Updates the latent factors on a user
|
|
SaveModel ( string filename ) : void | ||
ToString ( ) : string | ||
Train ( ) : void | ||
UpdateRating ( int user_id, int item_id, double rating ) : void |
메소드 | 설명 | |
---|---|---|
AddItem ( int item_id ) : void | ||
AddUser ( int user_id ) : void | ||
InitModel ( ) : void |
Initialize the model data structure
|
|
Iterate ( IList |
Iterate once over rating data and adjust corresponding factors (stochastic gradient descent)
|
|
Predict ( int user_id, int item_id, bool bound ) : double |
메소드 | 설명 | |
---|---|---|
LearnFactors ( IList |
public AddRating ( int user_id, int item_id, double rating ) : void | ||
user_id | int | |
item_id | int | |
rating | double | |
리턴 | void |
protected Iterate ( IList |
||
rating_indices | IList |
a list of indices pointing to the ratings to iterate over |
update_user | bool | true if user factors to be updated |
update_item | bool | true if item factors to be updated |
리턴 | void |
public Predict ( int user_id, int item_id ) : double | ||
user_id | int | the user ID |
item_id | int | the item ID |
리턴 | double |
protected Predict ( int user_id, int item_id, bool bound ) : double | ||
user_id | int | |
item_id | int | |
bound | bool | |
리턴 | double |
public RemoveRating ( int user_id, int item_id ) : void | ||
user_id | int | |
item_id | int | |
리턴 | void |
public UpdateRating ( int user_id, int item_id, double rating ) : void | ||
user_id | int | |
item_id | int | |
rating | double | |
리턴 | void |