1

I have a general question on applying k-means clustering on the datasets..

How to find the feature/(data column) that separates each cluster of K-means?

may be using scikit-learn in python ..

Best Regards, Swati

jaiswati_b
  • 21
  • 3
  • do you mean predicted labels or cluster centers? You can get both of them using kmeans.labels_ and kmeans.cluster_centers_. Check documentation https://scikit-learn.org/stable/modules/generated/sklearn.cluster.KMeans.html – chlebek Oct 17 '19 at 08:59
  • Not exactly.. I mean the actual input columns (independent variables).. How to find which columns are different in each of the cluster – jaiswati_b Oct 17 '19 at 09:27

0 Answers0