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

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

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

Свойство Тип Описание
_MapToLatentFactorSpace double[]>.Func
factor_bias double[]
item_attributes MyMediaLite.DataType.SparseBooleanMatrix

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

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

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

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

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

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

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

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

map to latent factor space (field)
protected Func _MapToLatentFactorSpace
Результат double[]>.Func

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