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

  • 8Puzzle Java 实现
    这 ia 8 益智执行与曼哈顿距离启发式模型使用星搜索算法。它是由 8 个数字上板,目标是要把这些数字按顺序由 awapping 他们在空白的瓷砖。如果不能达到的最终状态由于订购它给出错误,并说最终的状态就不能实现。使用的搜索算法是 A * 搜索,这非常类似于 Dijsktra。8 的谜题是一个标准的人工智能技术问题。8 拼图问题的更多信息,请访问此链接: http://en.wikipedia.org/wiki/15_puzzle一旦你把你的初始状态,它将查找到最终状态的最短路径,然后打印该路径。要知道的事情: 队列、 堆栈、 列表、 动态数组 * 算法
    2022-12-02 07:20:03下载
    积分:1
  • 此程序为测量中的平差程序,矩阵求逆采用初等行列变换,速度较快...
    此程序为测量中的平差程序,矩阵求逆采用初等行列变换,速度较快-This procedure for the measurement of adjustment procedures, the use of elementary matrix inversion ranks transform, fast
    2022-05-23 09:51:58下载
    积分:1
  • C 二叉搜索树的数据结构编程练习
    这是一个在大学课堂数据结构课堂中学生练习的一个关于树这个特殊的数据结构的课堂练习,这个代码应用了二叉树的建树,先根,后跟、以及中跟搜索的算法
    2022-04-17 23:30:39下载
    积分:1
  • good SVM algorithm, using the LS
    不错的SVM实现算法,采用的是LS-SVM算法,这是MATLAB版本,还有一个C版本-good SVM algorithm, using the LS-SVM, which is MATLAB version, a C version
    2023-08-05 06:25:03下载
    积分:1
  • SOR algorithm for solving linear equations, c++, numerical methods
    SOR算法解线性方程组,c++,数值方法-SOR algorithm for solving linear equations, c++, numerical methods
    2022-03-21 16:09:13下载
    积分:1
  • How to modify the MFC AppWizard Wizard to generate the appearance of the framewo...
    如何修改MFC AppWizard向导生成的框架程序的外观和大小,修改图标、光标、背景的三种方法。如何增加和删除工具栏按钮,如何给应用程序增加工具栏,如何显示和隐藏工具栏。定制状态栏,在状态栏中添加时钟显示,CTime类及其用法。在状态栏中添加进度条(主窗口产生后立即产生进度条的巧妙思想,不能在OnCreate函数中直接处理,要用到自定义消息的方法)。鼠标坐标显示,在CView中获取状态栏对象的几种方式。如何为应用程序添加启动画面。 -How to modify the MFC AppWizard Wizard to generate the appearance of the framework of procedures and size, modify the icon, cursor, background three methods. How to add and remove toolbar buttons, how to increase the application toolbar, how to show and hide the toolbar. Custom status bar, add in the status bar clock display, CTime class and its usage. In the status bar to add the progress bar (the main window immediately after the progress bar the ingenious ideas, in the OnCreate function should not directly deal with, to use a custom message to the method). Mouse coordinates shows that access to the status bar in the CView object in several ways. How to add a splash screen applications.
    2022-12-03 22:25:03下载
    积分:1
  • 区间消去,主要用于解决优化问题中的区间确定问题
    区间消去法,主要用于解决优化问题中的区间确定问题-Interval elimination method, mainly for optimization problems to resolve the issues identified in the interval
    2022-07-03 11:07:21下载
    积分:1
  • insertion排序
    insertion排序-Insertion sort
    2022-09-02 18:15:02下载
    积分:1
  • 一些常用的数学数值,用C语言编写即可。
    一些常用的数学数值算法,用C语言编写即可。-some commonly used mathematical algorithm, using C language can be.
    2022-07-21 09:27:00下载
    积分:1
  • java sort
    java排序
    2022-12-31 21:15:04下载
    积分:1
  • 696518资源总数
  • 106155会员总数
  • 8今日下载