cluster.py 文件源码

python
阅读 39 收藏 0 点赞 0 评论 0

项目:PyMaid 作者: schlegelp 项目源码 文件源码
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 )
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号