Challenge

Unsupervised Learning - Kmeans Week 11 Challenge by Sourabh .

Ans 1. When the data is categorical, traditional similarity measures like Euclidean distance are not suitable because they rely on numeric values.

Here are some common techniques:

a) Binary (0/1) Encoding:- Convert categorical variables into binary vectors using one-hot encoding or label encoding. Then, calculate similarity using:

b) Distance-based measures:- Calculate distance between categorical values using Hamming Distance.

Your portfolio, next

Ship work like this
in your own course.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.