hiermetriclearn.py 文件源码

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

项目:massivedatans 作者: JohannesBuchner 项目源码 文件源码
def rebuild(self, u, ndim, keepMetric=False):
        if self.last_cluster_points is not None and \
            len(self.last_cluster_points) == len(u) and \
            numpy.all(self.last_cluster_points == u):
            # do nothing if everything stayed the same
            return

        self.cluster(u=u, ndim=ndim, keepMetric=keepMetric)
        self.last_cluster_points = u

        print 'maxdistance:', self.region.maxdistance
        self.generator = self.generate(ndim)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号