C# 클래스 MyMediaLite.AttrToFactor.MF_ItemMapping

biased MF with item mapping learned by regularized least-squares regression
상속: MF_Mapping, IItemAttributeAwareRecommender
파일 보기 프로젝트 열기: zenogantner/MML-KDD

보호된 프로퍼티들

프로퍼티 타입 설명
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