Returns a list of leaf node ids
The return corresponds to the observation vector index as it appears in the tree from left to right. Z is a linkage matrix.
Z : ndarray
The hierarchical clustering encoded as a matrix. Z is a linkage matrix. See linkage for more information.
leaves_list : ndarray
The list of leaf node ids.
scipy.cluster.hierarchy.ClusterNode.pre_order
scipy.cluster.hierarchy.to_tree
Enter search terms or a module, class or function name.