def calc_cophenet(self):
""" Returns Cophenetic Correlation coefficient of your clustering.
This (very very briefly) compares (correlates) the actual pairwise
distances of all your samples to those implied by the hierarchical
clustering. The closer the value is to 1, the better the clustering
preserves the original distances,
"""
return scipy.cluster.hierarchy.cophenet( self.linkage, self.condensed_dist_mat )
评论列表
文章目录