Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created March 3, 2021 07:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amankharwal/8ccdc35d9b06b9851a04a0ec913849a1 to your computer and use it in GitHub Desktop.
Save amankharwal/8ccdc35d9b06b9851a04a0ec913849a1 to your computer and use it in GitHub Desktop.
from sklearn.cluster import KMeans
kmeans = KMeans(n_clusters=10)
features = kmeans.fit_predict(normarization)
data['features'] = features
MinMaxScaler(data['features'])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment