Computes the Jaccard index of two binary vectors
Declaring type: Jaccard
Namespace: MyMediaLite.Correlation
Assembly: MyMediaLite
Collapse/Expand Syntax
C#
public static float ComputeCorrelation (
        HashSet<int> vector_i,
        HashSet<int> vector_j
) 
Parameters
vector_i
the first vector
vector_j
the second vector
Return Value
the cosine similarity between the two vectors