Skip to main content
edited tags
Link
Ethan
  • 1.7k
  • 9
  • 24
  • 39
Bumped by Community user

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

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.

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 work finely on mixed features? I don't need other algorithm. I just want to work with k-means only on mixed features dataset.

Source Link
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.