↔️ Similarity
Different ways to measure the similarity between two objects.
Jaccard Similarity
Mostly used for comparing two sets or regions, such as evaluating the accuracy of a clustering algorithm or object detection.
warning
When used to compare two sentences, it ignores semantics.
Cosine Similarity
Mostly used for comparing two vectors, such as evaluating the similarity of two documents with TF-IDF or word embeddings.
Pearson Correlation Coefficient
Mostly used for comparing two continuous variables, such as evaluating the correlation between two stocks or the relationship between two features.