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/6b7276ed03741c10aa81e1614d05c090 to your computer and use it in GitHub Desktop.
Save 3liud/6b7276ed03741c10aa81e1614d05c090 to your computer and use it in GitHub Desktop.
week_#7_in_machine learning13
errors = []
for i in range(1, 11):
kmeans = KMeans(n_clusters=i)
kmeans.fit(df2)
errors.append(kmeans.inertia_)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment