cluster:用于聚类数据的python模块

时间:2021-06-20 13:20:17
【文件属性】:
文件名称:cluster:用于聚类数据的python模块
文件大小:21KB
文件格式:ZIP
更新时间:2021-06-20 13:20:17
Python #簇 这是一个用于聚类数据的python模块。 它主要由三个类组成,如下所述。 观点 此类定义集群中的基本元素点。 默认距离函数使用欧几里得距离。 但是,您可以根据需要使用任何其他距离,只需使用您的距离函数初始化 Point 实例,例如: p = Point ([ 0 , 0 ], distance_function = your_function ) 您可能使用的属性和功能是: p . coordinates # a list of coordinates p . dimention # the dimention of this point p . index # the index for the point, default is -1 p1 . distance ( p2 ) # return the distance p1 . equal ( p2 ) # retur
【文件预览】:
cluster-master
----.gitignore(13B)
----data.txt(28KB)
----__init__.py(0B)
----clustering.py(15KB)
----point.py(3KB)
----README.md(3KB)
----cluster.py(4KB)

网友评论