0
$\begingroup$

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.

$\endgroup$
0
$\begingroup$

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

| improve this answer | |
$\endgroup$
  • $\begingroup$ For what I have seen in the other post one of the proposed ideas is to use K-Modes algorithm. $\endgroup$ – Carlos Mougan Dec 20 '19 at 11:30

Not the answer you're looking for? Browse other questions tagged or ask your own question.