Property | Type | Description | |
---|---|---|---|
shrinkage | float |
Method | Description | |
---|---|---|
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
|
public AdjustedCosine ( int num_entities ) : System | ||
num_entities | int | the number of entities |
return | System |
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 |
return | float |
public ComputeCorrelations ( IRatings ratings, EntityType entity_type ) : void | ||
ratings | IRatings | the rating data |
entity_type | EntityType | the entity type, either USER or ITEM |
return | void |
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 |
return | CorrelationMatrix |