K-means算法
摘要:在使用K-means算法进行聚类时,我们通常需要执行以下步骤: 初始化簇中心、 分配样本点到最近的簇中心、 更新簇中心,直到收敛。 这些步骤可以用C++实现如下: #include <iostream> #include <vector> #include <cmath> #include <lim
阅读全文
posted @ 2024-12-05 01:47
posted @ 2024-12-05 01:47