< >
Home » PythonRobotics机器人算法库 » PythonRobotics机器人算法库-k-means聚类对象

PythonRobotics机器人算法库-k-means聚类对象

说明:

步骤:

  • 进入目录/PythonRobotics/Mapping/kmeans_clustering

  • 执行文件

python3 kmeans_clustering.py
  • 结果如下
kmeans_clustering.py start!!
Time: 0.0
loop: 0
loop: 1
loop: 2
Time: 1.0
loop: 0
loop: 1
loop: 2
Time: 2.0
loop: 0
loop: 1
loop: 2
Time: 3.0
loop: 0
loop: 1
loop: 2
Time: 4.0
loop: 0
loop: 1
loop: 2
Time: 5.0
loop: 0
loop: 1
loop: 2
Time: 6.0
loop: 0
loop: 1
loop: 2
loop: 3
Time: 7.0
loop: 0
loop: 1
loop: 2
loop: 3
loop: 4
Time: 8.0
loop: 0
loop: 1
loop: 2
loop: 3
Time: 9.0
loop: 0
loop: 1
loop: 2
loop: 3
loop: 4
loop: 5
Time: 10.0
loop: 0
loop: 1
loop: 2
loop: 3
loop: 4
Time: 11.0
loop: 0
loop: 1
loop: 2
Time: 12.0
loop: 0
loop: 1
loop: 2
Time: 13.0
loop: 0
loop: 1
loop: 2
Time: 14.0
loop: 0
loop: 1
loop: 2
Time: 15.0
loop: 0
loop: 1
loop: 2
Done

请输入图片描述

纠错,疑问,交流: 请进入讨论区点击加入Q群

获取最新文章: 扫一扫右上角的二维码加入“创客智造”公众号


标签: none