clustering:[未知] K均值和层次聚类

时间:2021-05-16 08:23:02
【文件属性】:
文件名称:clustering:[未知] K均值和层次聚类
文件大小:61KB
文件格式:ZIP
更新时间:2021-05-16 08:23:02
JavaScript 集群 一个js库。 包括和。 。 安装 对于node.js: npm install clusterfck 或获取 K均值 var clusterfck = require ( "clusterfck" ) ; var colors = [ [ 20 , 20 , 80 ] , [ 22 , 22 , 90 ] , [ 250 , 255 , 253 ] , [ 0 , 30 , 70 ] , [ 200 , 0 , 23 ] , [ 100 , 54 , 100 ] , [ 255 , 13 , 8 ] ] ; // Calculate clusters. var clusters = clusterfck . kmeans ( colors , 3 ) ; kmeans的第二个参数是所需的簇数(默认为Math.sqrt(n/2) ,其中
【文件预览】:
clustering-master
----Jakefile.js(1KB)
----package.json(540B)
----test()
--------runcv.js(3KB)
--------sanity()
--------visual()
--------README.md(196B)
--------cvtests.json(562B)
----build.js(438B)
----LICENSE(1KB)
----lib()
--------hcluster.js(5KB)
--------distance.js(570B)
--------clusterfck.js(127B)
--------kmeans.js(3KB)
----README.md(3KB)

网友评论