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