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 118
下载积分: 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 个回复

  • 哈夫曼压缩文件解压缩
    哈夫曼压缩解压缩文件。使用自适应哈夫曼,在 *.asv 文件中,这可以解压缩压缩保存的所有文件类型。包含的所有文件。
    2022-07-16 08:40:07下载
    积分:1
  • 贪食蛇游戏
    通过键盘控制键来控制贪食蛇的运动方向,然后遇到一个点就继续增加贪食蛇的长度,直到撞到墙壁为止。
    2022-09-18 07:00:03下载
    积分:1
  • 基于UCOSIII的四轴飞行器程序设计
    资源描述本程序是基于UCOSIII的四轴飞行器程序设计,利于mpu6050进行姿态检测,DMA计算出欧拉角,利于串级PID控制电机,外环采用角度,内环采用角速度计算,但是本程序只是测试程序,有待完善。
    2023-09-07 15:20:04下载
    积分:1
  • 经典数值源码(很好)
    C++经典数值算法源码(good)-C classical numerical algorithm source code (good)
    2022-12-12 05:00:04下载
    积分:1
  • 维纳滤波处理,是C++源代码,包含了几个函数,请各位达人多多使用...
    维纳滤波处理,是C++源代码,包含了几个函数,请各位达人多多使用-Wiener filtering treatment is C++ Source code contains a number of functions, please use up a lot of people
    2022-11-12 05:15:03下载
    积分:1
  • 离散余弦变换与反变换
    图像压缩算法的一种,主要用于JPEG标准的图像压缩,是学习图像压缩必备技能。本源码采用C语言对图像数据进行DCT和IDCT变换,比较简单易懂,适合刚接触图像压缩算法的初学者。
    2022-07-03 18:35:52下载
    积分:1
  • 这个是用Visual C++实现的计器源代码,经过调试可行
    这个是用Visual C++实现的计算器源代码,经过调试可行-This is achieved using Visual C source code for the calculator, after debugging feasible
    2022-03-18 21:59:37下载
    积分:1
  • 运筹学中的马尔可夫链,很有用,检查可以运行
    运筹学中的马尔可夫链算法,很有用,检查可以运行-Operations Research in the Markov chain algorithm, very useful, can run a check
    2022-04-12 01:20:03下载
    积分:1
  • lisp utility lib
    CLLIB is a varied collection of Common lisp tools and routines in CLOCC. Includes:  â–  "guess the animal" game; simple neural net (AI)  â–  autoload function and snarfing autoloads from other files  â–  basic definitions: package and path  â–  base64 encoding and decoding (data format)  â–  Rolodex: BBDB/vCard handling  â–  check values and types of the elements of a list  â–  Common Lisp HyperSpec access  â–  read/write CLOS object
    2022-02-01 20:05:38下载
    积分:1
  • A program to demonstrate the optimization process of particle swarm optimization...
    A program to demonstrate the optimization process of particle swarm optimization. A two-dimensional objective function is visualized by level of grey: the lighter the color, the higher the function value. The particles are shown as red circles, their trajectory as red lines.-A program to demonstrate the optimization process of particle swarm optimization. A two- dimensional objective function is visualized by level of gray : the lighter the color, the higher the value function. The particles ar e shown as red circles. their trajectory as red lines.
    2022-10-27 02:55:03下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载