clustering.py 文件源码

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

项目:ccCluster 作者: gsantoni 项目源码 文件源码
def checkMultiplicity(self, thr):
        FlatC = hierarchy.fcluster(self.Tree, thr, criterion='distance')
        counter=collections.Counter(FlatC)
        Best = max(counter.iteritems(), key=operator.itemgetter(1))[0]
        print('You are clustering with a threshold of %s'%(thr))
        print('The biggest cluster contains %s datasets from a total of %s'%(counter[Best], len(self.labelList)))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号