C# Класс MyMediaLite.AttrToFactor.MF_ItemMapping

biased MF with item mapping learned by regularized least-squares regression
Наследование: MF_Mapping, IItemAttributeAwareRecommender
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
data_item MyMediaLite.DataType.SparseBooleanMatrix
factor_bias double[]
item_attributes MyMediaLite.DataType.SparseBooleanMatrix
random System.Random

Открытые методы

Метод Описание
IterateMapping ( ) : void

Perform one iteration of the mapping learning process

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

Защищенные методы

Метод Описание
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.

Описание методов

ComputeMappingFit() защищенный Метод

Compute the fit of the mapping
protected ComputeMappingFit ( ) : double[]
Результат double[]

IterateMapping() публичный Метод

Perform one iteration of the mapping learning process
public IterateMapping ( ) : void
Результат void

LearnAttributeToFactorMapping() публичный Метод

public LearnAttributeToFactorMapping ( ) : void
Результат void

MapToLatentFactorSpace() защищенный Метод

map to latent factor space
protected MapToLatentFactorSpace ( int item_id ) : double[]
item_id int
Результат double[]

Predict() публичный Метод

public Predict ( int user_id, int item_id ) : double
user_id int
item_id int
Результат double

SampleItem() защищенный Метод

Samples an item for the mapping training. Only items that are associated with at least one user are taken into account.
protected SampleItem ( ) : int
Результат int

ToString() публичный Метод

public ToString ( ) : string
Результат string

Описание свойств

data_item защищенное свойство

Who has rated what? item-wise
protected SparseBooleanMatrix,MyMediaLite.DataType data_item
Результат MyMediaLite.DataType.SparseBooleanMatrix

factor_bias защищенное свойство

array to store the bias for each mapping
protected double[] factor_bias
Результат double[]

item_attributes защищенное свойство

The matrix storing the item attributes
protected SparseBooleanMatrix,MyMediaLite.DataType item_attributes
Результат MyMediaLite.DataType.SparseBooleanMatrix

random защищенное свойство

random number generator
protected Random,System random
Результат System.Random