daily pastebin goal
32%
SHARE
TWEET

Untitled

a guest Mar 24th, 2019 49 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. KMEANS_CLUSTERS = 2
  2. ...
  3. model = KMeans(
  4.     n_clusters=KMEANS_CLUSTERS,
  5.     init='k-means++',
  6.     max_iter=5,
  7.     n_init=1,
  8.     verbose=True
  9. )
  10. groups = model.fit_predict(data)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top