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,430
  • 2
  • 20
  • 51

1 Answers1

0

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

Stephen Rauch
  • 1,831
  • 11
  • 23
  • 34
Syenix
  • 369
  • 1
  • 6