a guest Feb 18th, 2019 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- from sklearn.cluster import KMeans
- kmeans_model = KMeans(n_clusters, random_state=7).fit(embeddings)
- cluster_id = kmeans_model.predict(embeddings)
RAW Paste Data