Contents:
Hierarchical clustering followed by optional tree cutting
X (DataFrame) – Input data
DataFrame
metric (str) – Distance metric
str
method (str) – Clustering method
cut (bool) – Whether to cut the tree
bool
**kwargs – Additional keyword arguments for tree cutting passed to cutreeHybrid()
cutreeHybrid()
tuple[ndarray, Series]
tuple
ndarray
Series
Linkage matrix
Cluster labels