C# Class MyMediaLite.AttrToFactor.MF_ItemMapping

biased MF with item mapping learned by regularized least-squares regression
Inheritance: MF_Mapping, IItemAttributeAwareRecommender
Afficher le fichier Open project: zenogantner/MML-KDD

Protected Properties

Свойство Type Description
data_item MyMediaLite.DataType.SparseBooleanMatrix
factor_bias double[]
item_attributes MyMediaLite.DataType.SparseBooleanMatrix
random System.Random

Méthodes publiques

Méthode Description
IterateMapping ( ) : void

Perform one iteration of the mapping learning process

LearnAttributeToFactorMapping ( ) : void
Predict ( int user_id, int item_id ) : double
ToString ( ) : string

Méthodes protégées

Méthode Description
ComputeMappingFit ( ) : double[]

Compute the fit of the mapping

MapToLatentFactorSpace ( int item_id ) : double[]

map to latent factor space

SampleItem ( ) : int

Samples an item for the mapping training. Only items that are associated with at least one user are taken into account.

Method Details

ComputeMappingFit() protected méthode

Compute the fit of the mapping
protected ComputeMappingFit ( ) : double[]
Résultat double[]

IterateMapping() public méthode

Perform one iteration of the mapping learning process
public IterateMapping ( ) : void
Résultat void

LearnAttributeToFactorMapping() public méthode

public LearnAttributeToFactorMapping ( ) : void
Résultat void

MapToLatentFactorSpace() protected méthode

map to latent factor space
protected MapToLatentFactorSpace ( int item_id ) : double[]
item_id int
Résultat double[]

Predict() public méthode

public Predict ( int user_id, int item_id ) : double
user_id int
item_id int
Résultat double

SampleItem() protected méthode

Samples an item for the mapping training. Only items that are associated with at least one user are taken into account.
protected SampleItem ( ) : int
Résultat int

ToString() public méthode

public ToString ( ) : string
Résultat string

Property Details

data_item protected_oe property

Who has rated what? item-wise
protected SparseBooleanMatrix,MyMediaLite.DataType data_item
Résultat MyMediaLite.DataType.SparseBooleanMatrix

factor_bias protected_oe property

array to store the bias for each mapping
protected double[] factor_bias
Résultat double[]

item_attributes protected_oe property

The matrix storing the item attributes
protected SparseBooleanMatrix,MyMediaLite.DataType item_attributes
Résultat MyMediaLite.DataType.SparseBooleanMatrix

random protected_oe property

random number generator
protected Random,System random
Résultat System.Random