C# 클래스 MyMediaLite.ItemRecommendation.MF

Abstract class for matrix factorization based item predictors
상속: MyMediaLite.ItemRecommendation.IncrementalItemRecommender, IIterativeModel
파일 보기 프로젝트 열기: zenogantner/MML-KDD

보호된 프로퍼티들

프로퍼티 타입 설명
item_factors Matrix
num_factors int
user_factors Matrix

공개 메소드들

메소드 설명
ComputeFit ( ) : double

Computes the fit (optimization criterion) on the training data

Iterate ( ) : void

Iterate once over the data

LoadModel ( string file ) : void
MF ( ) : System

Default constructor

Predict ( int user_id, int item_id ) : double

Predict the weight for a given user-item combination

If the user or the item are not known to the recommender, zero is returned. To avoid this behavior for unknown entities, use CanPredict() to check before.

SaveModel ( string file ) : void
Train ( ) : void

보호된 메소드들

메소드 설명
InitModel ( ) : void

메소드 상세

ComputeFit() 공개 추상적인 메소드

Computes the fit (optimization criterion) on the training data
public abstract ComputeFit ( ) : double
리턴 double

InitModel() 보호된 메소드

protected InitModel ( ) : void
리턴 void

Iterate() 공개 추상적인 메소드

Iterate once over the data
public abstract Iterate ( ) : void
리턴 void

LoadModel() 공개 메소드

public LoadModel ( string file ) : void
file string
리턴 void

MF() 공개 메소드

Default constructor
public MF ( ) : System
리턴 System

Predict() 공개 메소드

Predict the weight for a given user-item combination
If the user or the item are not known to the recommender, zero is returned. To avoid this behavior for unknown entities, use CanPredict() to check before.
public Predict ( int user_id, int item_id ) : double
user_id int the user ID
item_id int the item ID
리턴 double

SaveModel() 공개 메소드

public SaveModel ( string file ) : void
file string
리턴 void

Train() 공개 메소드

public Train ( ) : void
리턴 void

프로퍼티 상세

item_factors 보호되어 있는 프로퍼티

Latent item factor matrix
protected Matrix item_factors
리턴 Matrix

num_factors 보호되어 있는 프로퍼티

Number of latent factors per user/item
protected int num_factors
리턴 int

user_factors 보호되어 있는 프로퍼티

Latent user factor matrix
protected Matrix user_factors
리턴 Matrix