How does the k-modes algorithm adapt k-means to handle purely categorical data?
Role: Machine Learning Engineer
Category: Machine Learning
Difficulty: medium
Interview Round: Other
Overview: Asks how k-modes changes the k-means algorithm so it can cluster purely categorical records. Tests whether you know the matching dissimilarity, why the per-attribute mode replaces the mean, why the cost cannot increase, and the practical issues of initialization, ties and mixed data.