Python_K-means算法
from sklearn import cluster
[centroid, label, inertia] = cluster.k_means(data_to_be_classified, num_of_clusters)
from sklearn import cluster
[centroid, label, inertia] = cluster.k_means(data_to_be_classified, num_of_clusters)