C# 클래스 MyMediaLite.AttrToFactor.BPRMF_ItemMapping

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

보호된 프로퍼티들

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