Skip to content

Instantly share code, notes, and snippets.

@WashingtonGold
Last active September 18, 2020 17:16
Show Gist options
  • Save WashingtonGold/2563def5155f6b513a3aca0b2b8ea36a to your computer and use it in GitHub Desktop.
Save WashingtonGold/2563def5155f6b513a3aca0b2b8ea36a to your computer and use it in GitHub Desktop.
from sklearn.cluster import AgglomerativeClustering
model = AgglomerativeClustering(n_clusters=2)
model.fit(X)
model.labels_ #for labels
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment