Skip to content

Instantly share code, notes, and snippets.

@3liud
Created March 21, 2022 09:51
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 3liud/6a7997736b50bd08ca5b6f207520bb64 to your computer and use it in GitHub Desktop.
Save 3liud/6a7997736b50bd08ca5b6f207520bb64 to your computer and use it in GitHub Desktop.
week_#7_in_machine learning15
km = KMeans(n_clusters=5)
km.fit(df2)
y = km.predict(df2)
df2['Label'] = y
df2.head()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment