C# 클래스 numl.Recommendation.CofiRecommenderModel

Collaborative Filtering Recommender model.
상속: Supervised.Model
파일 보기 프로젝트 열기: sethjuarez/numl

공개 메소드들

메소드 설명
CofiRecommenderModel ( ) : System

Initializes a new Collaborative Filtering recommender model.

NewEntity ( object item ) : void

Inserts a new learning target entity feature item into the model, i.e. insert a new Movie into the existing model.

NewReference ( object item ) : void

Inserts a new source / reference feature (i.e. User rating items) into the existing model.

Predict ( int referenceId ) : Vector

Predicts all the recommendations of the Items for the supplied reference, i.e. a user.

Predict ( Vector y ) : double

Not implemnted.

PredictRelated ( int itemId, int count = 5, ItemType itemType = ItemType.References ) : Vector

Predicts the related items, given the item index and the type (either References or Entities).

메소드 상세

CofiRecommenderModel() 공개 메소드

Initializes a new Collaborative Filtering recommender model.
public CofiRecommenderModel ( ) : System
리턴 System

NewEntity() 공개 메소드

Inserts a new learning target entity feature item into the model, i.e. insert a new Movie into the existing model.
public NewEntity ( object item ) : void
item object A source entity object.
리턴 void

NewReference() 공개 메소드

Inserts a new source / reference feature (i.e. User rating items) into the existing model.
public NewReference ( object item ) : void
item object A source feature object.
리턴 void

Predict() 공개 메소드

Predicts all the recommendations of the Items for the supplied reference, i.e. a user.
public Predict ( int referenceId ) : Vector
referenceId int Reference index to use for generating predictions.
리턴 numl.Math.LinearAlgebra.Vector

Predict() 공개 메소드

Not implemnted.
public Predict ( Vector y ) : double
y numl.Math.LinearAlgebra.Vector
리턴 double

PredictRelated() 공개 메소드

Predicts the related items, given the item index and the type (either References or Entities).
public PredictRelated ( int itemId, int count = 5, ItemType itemType = ItemType.References ) : Vector
itemId int The item index in the corresponding feature map column.
count int count
itemType ItemType Type of item to return related items (i.e. References = user ratings OR Entities = books or movies)
리턴 numl.Math.LinearAlgebra.Vector