C# 클래스 MyMediaLite.Correlation.AdjustedCosine

Class for (shrunk) adjusted cosine similarity
Badrul Sarwar, George Karypis, Joseph Konstan, John Riedl: Item-based collaborative filtering recommendation algorithms. WWW 2001
상속: RatingCorrelationMatrix
파일 보기 프로젝트 열기: zenogantner/MML-KDD 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
shrinkage float

공개 메소드들

메소드 설명
AdjustedCosine ( int num_entities ) : System

Constructor. Create a AdjustedCosine matrix

ComputeCorrelation ( IRatings ratings, EntityType entity_type, int i, int j, float shrinkage ) : float

Compute correlations between two entities for given ratings

ComputeCorrelations ( IRatings ratings, EntityType entity_type ) : void

Compute correlations for given ratings

Create ( IRatings ratings, EntityType entity_type, float shrinkage ) : CorrelationMatrix

Create a AdjustedCosine matrix from given data

메소드 상세

AdjustedCosine() 공개 메소드

Constructor. Create a AdjustedCosine matrix
public AdjustedCosine ( int num_entities ) : System
num_entities int the number of entities
리턴 System

ComputeCorrelation() 공개 정적인 메소드

Compute correlations between two entities for given ratings
public static ComputeCorrelation ( IRatings ratings, EntityType entity_type, int i, int j, float shrinkage ) : float
ratings IRatings the rating data
entity_type EntityType the entity type, either USER or ITEM
i int the ID of first entity
j int the ID of second entity
shrinkage float the shrinkage parameter
리턴 float

ComputeCorrelations() 공개 메소드

Compute correlations for given ratings
public ComputeCorrelations ( IRatings ratings, EntityType entity_type ) : void
ratings IRatings the rating data
entity_type EntityType the entity type, either USER or ITEM
리턴 void

Create() 공개 정적인 메소드

Create a AdjustedCosine matrix from given data
public static Create ( IRatings ratings, EntityType entity_type, float shrinkage ) : CorrelationMatrix
ratings IRatings the ratings data
entity_type EntityType the entity type, either USER or ITEM
shrinkage float a shrinkage parameter
리턴 CorrelationMatrix

프로퍼티 상세

shrinkage 공개적으로 프로퍼티

shrinkage parameter
public float shrinkage
리턴 float