C# Class MyMediaLite.AttrToFactor.BPRMF_ItemMapping

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

Protected Properties

Свойство Type Description
_MapToLatentFactorSpace double[]>.Func
factor_bias double[]
item_attributes MyMediaLite.DataType.SparseBooleanMatrix

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 (method to be called)

SampleItem ( ) : int

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

__MapToLatentFactorSpace ( int item_id ) : double[]

map to latent factor space (actual function)

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 (method to be called)
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

__MapToLatentFactorSpace() protected méthode

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

Property Details

_MapToLatentFactorSpace protected_oe property

map to latent factor space (field)
protected Func _MapToLatentFactorSpace
Résultat double[]>.Func

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