K-Means in Python, C++ and CUDA

k-means聚类算法C++实现

https://www.cnblogs.com/luxiaoxun/archive/2013/05/09/3069594.html

代码地址:http://files.cnblogs.com/luxiaoxun/k-means.rar

k-means.cpp里需要添加头文件:

#include <string.h>
#include <assert.h>

添加后测试正常。返回值是与数据向量等长的类别向量。

Exploring K-Means in Python, C++ and CUDA:

http://www.goldsborough.me/c++/python/cuda/2017/09/10/20-32-46-exploring_k-means_in_python,_c++_and_cuda/

需要给定循环次数。不能按照误差自行完成分类。

猜你喜欢

转载自blog.csdn.net/lzp_k2/article/details/83341536