C# Class MyMediaLite.RatingPrediction.SimpleMatrixFactorization

Simple matrix factorization class
Minimalistic MF implementation, without working LoadModel()/SaveModel(). This recommender does NOT support incremental updates.
Inheritance: RatingPredictor, IIterativeModel
ファイルを表示 Open project: zenogantner/MML-KDD

Public Methods

Method Description
ComputeFit ( ) : double
Iterate ( ) : void

Iterate once over rating data (stochastic gradient descent)

LoadModel ( string file ) : void
Predict ( int user_id, int item_id ) : double

Predict the rating of a given user for a given item

SaveModel ( string file ) : void
SimpleMatrixFactorization ( ) : System

Default constructor

ToString ( ) : string
Train ( ) : void

Method Details

ComputeFit() public method

public ComputeFit ( ) : double
return double

Iterate() public method

Iterate once over rating data (stochastic gradient descent)
public Iterate ( ) : void
return void

LoadModel() public method

public LoadModel ( string file ) : void
file string
return void

Predict() public method

Predict the rating of a given user for a given item
public Predict ( int user_id, int item_id ) : double
user_id int the user ID
item_id int the item ID
return double

SaveModel() public method

public SaveModel ( string file ) : void
file string
return void

SimpleMatrixFactorization() public method

Default constructor
public SimpleMatrixFactorization ( ) : System
return System

ToString() public method

public ToString ( ) : string
return string

Train() public method

public Train ( ) : void
return void