C# 클래스 MyMediaLite.RatingPrediction.NewKNN

kNN-based rating predictors (not working yet)
The method is described in section 2.2 of Yehuda Koren Factor in the Neighbors: Scalable and Accurate Collaborative Filtering Transactions on Knowledge Discovery from Data (TKDD), 2009 This recommender does NOT support incremental updates. ItemRecommendation.KNN
상속: UserItemBaseline
파일 보기 프로젝트 열기: zenogantner/MML-KDD

공개 메소드들

메소드 설명
LoadModel ( string filename ) : void
NewKNN ( ) : System

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, a suitable average rating is returned. To avoid this behavior for unknown entities, use CanPredict() to check before.

SaveModel ( string filename ) : void
ToString ( ) : string
Train ( ) : void

비공개 메소드들

메소드 설명
CreateSimilarityMatrix ( string typename ) : void

메소드 상세

LoadModel() 공개 메소드

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

NewKNN() 공개 메소드

Constructor
public NewKNN ( ) : System
리턴 System

Predict() 공개 메소드

Predict the rating of a given user for a given item
If the user or the item are not known to the recommender, a suitable average rating 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 filename ) : void
filename string
리턴 void

ToString() 공개 메소드

public ToString ( ) : string
리턴 string

Train() 공개 메소드

public Train ( ) : void
리턴 void