Skip to content

Instantly share code, notes, and snippets.

@CharlesRajendran
Created March 17, 2018 12:00
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 CharlesRajendran/cc8292fab502ed6201b61c3f0459271f to your computer and use it in GitHub Desktop.
Save CharlesRajendran/cc8292fab502ed6201b61c3f0459271f to your computer and use it in GitHub Desktop.
kmeans = KMeans(n_clusters=4, init="k-means++", max_iter=1000, n_init=10)
y_pred = kmeans.fit_predict(X)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment