Challenge

Unsupervised Learning - Kmeans Week 11 Challenge

Answer 1:

For categorical features, we can use Hamming distance as one of the method to calculate similarity between them. Also cosine similarity can be used to find similarity. Hence, we can assign a similarity of 1 is both are same, else 0.

Answer 2:

Code is provided in Week_11.ipynb

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.