Свойство | Type | Description | |
---|---|---|---|
global_bias | double | ||
item_factors | Matrix |
||
user_factors | Matrix |
Méthode | Description | |
---|---|---|
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 |
Méthode | Description | |
---|---|---|
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 |
Méthode | Description | |
---|---|---|
LearnFactors ( IList |
public AddRating ( int user_id, int item_id, double rating ) : void | ||
user_id | int | |
item_id | int | |
rating | double | |
Résultat | 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 |
Résultat | void |
public LoadModel ( string filename ) : void | ||
filename | string | |
Résultat | void |
public Predict ( int user_id, int item_id ) : double | ||
user_id | int | the user ID |
item_id | int | the item ID |
Résultat | double |
protected Predict ( int user_id, int item_id, bool bound ) : double | ||
user_id | int | |
item_id | int | |
bound | bool | |
Résultat | double |
public RemoveRating ( int user_id, int item_id ) : void | ||
user_id | int | |
item_id | int | |
Résultat | void |
public RetrainItem ( int item_id ) : void | ||
item_id | int | the item ID |
Résultat | void |
public RetrainUser ( int user_id ) : void | ||
user_id | int | the user ID |
Résultat | void |
public SaveModel ( string filename ) : void | ||
filename | string | |
Résultat | void |
public UpdateRating ( int user_id, int item_id, double rating ) : void | ||
user_id | int | |
item_id | int | |
rating | double | |
Résultat | void |