Clustering package (scipy.cluster)#

Clustering algorithms are useful in information theory, target detection,communications, compression, and other areas. Thevq module onlysupports vector quantization and the k-means algorithms.

Thehierarchy module provides functions for hierarchical andagglomerative clustering. Its features include generating hierarchicalclusters from distance matrices,calculating statistics on clusters, cutting linkagesto generate flat clusters, and visualizing clusters with dendrograms.