0

I have a dataset with numerical and categorical features. I am trying to run a k-means algorithm to find clusters of data.

What is the best way to encode categorical features?

I have been doing one hot encoding but I guess that it can be easily improved.

Carlos Mougan
  • 6,252
  • 2
  • 18
  • 48

1 Answers1

0

Try Hierarchical Clustering, Kmeans will not serve the purpose if you have categorical data.

Stephen Rauch
  • 1,783
  • 11
  • 22
  • 34
Syenix
  • 359
  • 1
  • 6