-
-
Save quantra-go-algo/6884240a0882cab06603e49c6e66df12 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import scipy.cluster.hierarchy as sc | |
# Plot dendrogram | |
plt.figure(figsize=(20, 7)) | |
plt.title("Dendrograms") | |
# Create dendrogram | |
sc.dendrogram(sc.linkage(iris_X, method='ward')) | |
plt.title('Dendrogram') | |
plt.xlabel('Sample index') | |
plt.ylabel('Euclidean distance') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment