C# Class numl.Recommendation.CofiRecommenderModel

Collaborative Filtering Recommender model.
Inheritance: Supervised.Model
Mostrar archivo Open project: sethjuarez/numl

Public Methods

Method Description
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).

Method Details

CofiRecommenderModel() public method

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

NewEntity() public method

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.
return void

NewReference() public method

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.
return void

Predict() public method

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.
return numl.Math.LinearAlgebra.Vector

Predict() public method

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

PredictRelated() public method

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)
return numl.Math.LinearAlgebra.Vector