Skip to main content
1 of 3
Sathya
  • 11
  • 1
  • 3

How to handle categorical features in K-means?

I am working on clustering algorithms.I am working with titanic dataset.It contains 6 categorical features.I used k-means algorithm on this dataset.I am using label encoding for categorical features.But i found that categorical features should use euclidean distance.it should use hamming distance.so,How to make k-means works finely on mixed features.I don't need other algorithm.I just want to work with k-means only on mixed features dataset.

Sathya
  • 11
  • 1
  • 3