C# 클래스 MyMediaLite.AttrToFactor.BPRMF_UserMapping

User attribute to latent factor mapping for BPR-MF, optimized for RMSE on the latent factors
상속: BPRMF_Mapping, IUserAttributeAwareRecommender
파일 보기 프로젝트 열기: zenogantner/MML-KDD

보호된 프로퍼티들

프로퍼티 타입 설명
user_attributes MyMediaLite.DataType.SparseBooleanMatrix

공개 메소드들

메소드 설명
IterateMapping ( ) : void
LearnAttributeToFactorMapping ( ) : void
Predict ( int user_id, int item_id ) : double
ToString ( ) : string

보호된 메소드들

메소드 설명
ComputeMappingFit ( ) : double[]
MapUserToLatentFactorSpace ( ICollection user_attributes ) : double[]

map from user attributes to latent factor space

SampleUserWithAttributes ( ) : int

Samples an user for the mapping training. Only users that are associated with at least one item, and that actually have attributes, are taken into account.

메소드 상세

ComputeMappingFit() 보호된 메소드

protected ComputeMappingFit ( ) : double[]
리턴 double[]

IterateMapping() 공개 메소드

public IterateMapping ( ) : void
리턴 void

LearnAttributeToFactorMapping() 공개 메소드

public LearnAttributeToFactorMapping ( ) : void
리턴 void

MapUserToLatentFactorSpace() 보호된 메소드

map from user attributes to latent factor space
protected MapUserToLatentFactorSpace ( ICollection user_attributes ) : double[]
user_attributes ICollection
리턴 double[]

Predict() 공개 메소드

public Predict ( int user_id, int item_id ) : double
user_id int
item_id int
리턴 double

SampleUserWithAttributes() 보호된 메소드

Samples an user for the mapping training. Only users that are associated with at least one item, and that actually have attributes, are taken into account.
protected SampleUserWithAttributes ( ) : int
리턴 int

ToString() 공개 메소드

public ToString ( ) : string
리턴 string

프로퍼티 상세

user_attributes 보호되어 있는 프로퍼티

The matrix storing the user attributes
protected SparseBooleanMatrix,MyMediaLite.DataType user_attributes
리턴 MyMediaLite.DataType.SparseBooleanMatrix