Unsupervised Learning - Kmeans Week 11 Challenge
ans 1= For categorical data, similarity can be calculated using various metrics such as:
-
Hamming Distance: It measures the number of positions at which the corresponding symbols are different.
-
Jaccard Similarity: It calculates the size of the intersection divided by the size of the union of two sets. This is often used for comparing sets of categorical data.
-
Dice Similarity Coefficient: Similar to Jaccard, but it's another measure of set similarity that takes into account both the number of shared elements and the size of the sets.
-
Categorical Cross-Entropy: It measures the dissimilarity between two probability distributions over the categories. It is commonly used in the context of classification problems.
The choice of similarity metric depends on the nature of your categorical data and the specific requirements of your analysis.