kmeans.py 文件源码

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

项目:modernpython 作者: rhettinger 项目源码 文件源码
def compute_centroids(groups: Iterable[Sequence[Point]]) -> List[Centroid]:
    'Compute the centroid of each group'
    return [tuple(map(mean, transpose(group))) for group in groups]
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号