C# 클래스 MyMediaLite.ItemRecommendation.BPR_Linear

Linear model optimized for BPR
This recommender does NOT support incremental updates.
상속: ItemRecommender, IItemAttributeAwareRecommender, IIterativeModel
파일 보기 프로젝트 열기: zenogantner/MML-KDD

보호된 프로퍼티들

프로퍼티 타입 설명
iteration_length int

공개 메소드들

메소드 설명
ComputeFit ( ) : double
Iterate ( ) : void

Perform one iteration of stochastic gradient ascent over the training data. One iteration is iteration_length * number of entries in the training matrix

LoadModel ( string filename ) : void
Predict ( int user_id, int item_id ) : double
SaveModel ( string filename ) : void
ToString ( ) : string
Train ( ) : void

보호된 메소드들

메소드 설명
SampleItemPair ( int u, int &i, int &j ) : void

Sample a pair of items, given a user

SampleTriple ( int &u, int &i, int &j ) : void

Sample a triple for BPR learning

SampleUser ( ) : int

Sample a user that has viewed at least one and not all items

UpdateFeatures ( int u, int i, int j ) : void

Modified feature update method that exploits attribute sparsity

메소드 상세

ComputeFit() 공개 메소드

public ComputeFit ( ) : double
리턴 double

Iterate() 공개 메소드

Perform one iteration of stochastic gradient ascent over the training data. One iteration is iteration_length * number of entries in the training matrix
public Iterate ( ) : void
리턴 void

LoadModel() 공개 메소드

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

Predict() 공개 메소드

public Predict ( int user_id, int item_id ) : double
user_id int
item_id int
리턴 double

SampleItemPair() 보호된 메소드

Sample a pair of items, given a user
protected SampleItemPair ( int u, int &i, int &j ) : void
u int the user ID
i int the ID of the first item
j int the ID of the second item
리턴 void

SampleTriple() 보호된 메소드

Sample a triple for BPR learning
protected SampleTriple ( int &u, int &i, int &j ) : void
u int the user ID
i int the ID of the first item
j int the ID of the second item
리턴 void

SampleUser() 보호된 메소드

Sample a user that has viewed at least one and not all items
protected SampleUser ( ) : int
리턴 int

SaveModel() 공개 메소드

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

ToString() 공개 메소드

public ToString ( ) : string
리턴 string

Train() 공개 메소드

public Train ( ) : void
리턴 void

UpdateFeatures() 보호된 메소드

Modified feature update method that exploits attribute sparsity
protected UpdateFeatures ( int u, int i, int j ) : void
u int
i int
j int
리턴 void

프로퍼티 상세

iteration_length 보호되어 있는 프로퍼티

One iteration is iteration_length * number of entries in the training matrix
protected int iteration_length
리턴 int