Created
March 21, 2022 09:51
-
-
Save 3liud/6a7997736b50bd08ca5b6f207520bb64 to your computer and use it in GitHub Desktop.
week_#7_in_machine learning15
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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