2)kmeans.inspect#使用kmeans.view拿到未检查数组=>[[3,4],[0,1,2]]自定义的质心需要"rubygems"要求"k_means"#您自定义的质心需要有#position和#reposition的方法类CustomCentroidattr_acces-IMDN开发者社群-imdn.cn"> 2)kmeans.inspect#使用kmeans.view拿到未检查数组=>[[3,4],[0,1,2]]自定义的质心需要"rubygems"要求"k_means"#您自定义的质心需要有#position和#reposition的方法类CustomCentroidattr_acces - IMDN开发者社群-imdn.cn">
登录
首页 » 算法 » k-均值算法 python

k-均值算法 python

于 2022-04-28 发布 文件大小:56.72 kB
0 130
下载积分: 2 下载次数: 1

代码说明:

均值比率 试图生成速度快、 内存效率的 K-均值程序。 安装 gem来源-http://rubygems.org sudo gem安装 k_means 如何使用 需要 "rubygems" 要求 "k_means" 数据 = [[1,1]、 [1,2],[1,1],[1000年、 1000年],[500、 500]] kmeans = KMeans.new (数据,: 质心 = > 2) kmeans.inspect # 使用 kmeans.view 拿到未检查数组 = > [[3,4],[0,1,2]] 自定义的质心 需要 "rubygems" 要求 "k_means" # 您自定义的质心需要有 #position 和 #reposition 的方法 类 CustomCentroid attr_acces

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 病态方程组的运
    病态方程组的运算-CSM Group Operational
    2023-07-13 00:45:02下载
    积分:1
  • 波动方程的DG方
    DG method for wave equations
    2022-03-25 23:46:54下载
    积分:1
  • contains five kinds of sorting algorithm using vb achieve
    包含5种排序算法,利用vb实现-contains five kinds of sorting algorithm using vb achieve
    2022-08-15 17:18:14下载
    积分:1
  • 在MATLAB环境中实现最小二乘和有理分式插值的程序
    在MATLAB环境中实现最小二乘法和有理分式插值法的程序-lspoly and DOS method
    2022-06-01 07:49:17下载
    积分:1
  • 可计工业卧式设备,荷载类型有:风荷载,地震荷载,设荷载,温度应力。基础类型有:桩基础。...
    可计算工业卧式设备,荷载类型有:风荷载,地震荷载,设荷载,温度应力。基础类型有:桩基础。-computable industrial equipment, load types : wind loads, earthquake loading, based load and temperature stress. Basic types : pile foundation.
    2023-03-30 05:15:03下载
    积分:1
  • Neighbor Coverage Based Probabilistic Rebroadcast for reducing Routing Overhead in MANET
    广播是移动Ad Hoc网络的无线自组网的基本操作,从而在源节点发送相同或相同的数据包到网络中的所有节点。用于路由发现其中一个移动节点盲目地再广播接收机路由请求分组为止的路径建立特定目的地简单泛洪技术。而广播有许多优点,它也有一些缺点,诸如广播风暴的问题,它会导致多余的重发,碰撞,以及争用。邻居覆盖率基于概率转播路由协议的开销减少MANET中。此方法结合了邻居覆盖知识方法和概率方法,它可以解决广播风暴问题,也减少了路由的开销来提高性能。在这种方法中首先计算重播延迟是确定的转发顺序,也乘以附加的覆盖率和连通因子计算重播概率。
    2023-04-22 00:40:04下载
    积分:1
  • The source includes a recursive template version and a non
    The source includes a recursive template version and a non-recursive template version
    2023-05-28 10:10:04下载
    积分:1
  • 积分
    不定积分 输入x1,f(x1),x2,f(x2)...输出F(x1),F(x2)... 用二分法和sinx求π.sinx用泰勒展开逼近。-integral
    2022-10-16 01:20:03下载
    积分:1
  • odd N bands Demon Lineup : N
    奇数N 阶魔方阵问题: 奇数N 阶魔方阵的构造规则如下: 1、在第一行的正中间填入1; 2、如果左上角能够移动,则往左上角填入后继的数;如果左上角不 能移动,则顺移到该列最下方左边的一列中最靠近该列的位置; 3、如果左上角不能移动,同时在该列位置的最下方左边最靠近的位 置处也不能填入数,则往该位置的上一行的最右边的位置处填入 后继数; 4、每次尽可能地往左上角填数,如果发现左上角已经填满了数,则 从当前填的数的位置下方填上后继数。 要求: 无。 输入: 用户从键盘任意输入一个正奇数。 输出: 打印出该魔方阵。-odd N bands Demon Lineup : N-odd magic Lineup Construction Rules are as follows : 1, the first line is the middle of a preference; Two, if the upper left corner to Mobile, the successor to fill in the upper left; If the upper left corner, unable to move, with the move out of the bottom of the left one of the closest out of position; three, if the upper left corner, unable to move, while in the position shown in the bottom left nearest location Department has not entered a few, to the position of the party on the right side of the positions filled successor; 4, each possible to fill the upper left corner, if fill the upper left corner, has found a few, from the current fill several positions to fill in the bottom subsequent few. Requ
    2022-01-21 19:39:47下载
    积分:1
  • 直流电机的 PID 控制
    pid 控制直流电机转速和旋转编程与 CCS 编译器 (C 代码),用 protus 模拟
    2022-03-09 19:29:15下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载