C# Class MyMediaLite.AttrToFactor.BPRMF_UserMapping

User attribute to latent factor mapping for BPR-MF, optimized for RMSE on the latent factors
Inheritance: BPRMF_Mapping, IUserAttributeAwareRecommender
Afficher le fichier Open project: zenogantner/MML-KDD

Protected Properties

Свойство Type Description
user_attributes MyMediaLite.DataType.SparseBooleanMatrix

Méthodes publiques

Méthode Description
IterateMapping ( ) : void
LearnAttributeToFactorMapping ( ) : void
Predict ( int user_id, int item_id ) : double
ToString ( ) : string

Méthodes protégées

Méthode Description
ComputeMappingFit ( ) : double[]
MapUserToLatentFactorSpace ( ICollection user_attributes ) : double[]

map from user attributes to latent factor space

SampleUserWithAttributes ( ) : int

Samples an user for the mapping training. Only users that are associated with at least one item, and that actually have attributes, are taken into account.

Method Details

ComputeMappingFit() protected méthode

protected ComputeMappingFit ( ) : double[]
Résultat double[]

IterateMapping() public méthode

public IterateMapping ( ) : void
Résultat void

LearnAttributeToFactorMapping() public méthode

public LearnAttributeToFactorMapping ( ) : void
Résultat void

MapUserToLatentFactorSpace() protected méthode

map from user attributes to latent factor space
protected MapUserToLatentFactorSpace ( ICollection user_attributes ) : double[]
user_attributes ICollection
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

SampleUserWithAttributes() protected méthode

Samples an user for the mapping training. Only users that are associated with at least one item, and that actually have attributes, are taken into account.
protected SampleUserWithAttributes ( ) : int
Résultat int

ToString() public méthode

public ToString ( ) : string
Résultat string

Property Details

user_attributes protected_oe property

The matrix storing the user attributes
protected SparseBooleanMatrix,MyMediaLite.DataType user_attributes
Résultat MyMediaLite.DataType.SparseBooleanMatrix