data = [[4,1,3,4,5,0,9,10][12,3,5,1,4,9,0,9]...]
N_CLUSTERS = 8
kmeans = KMeans(init='k-means++', n_clusters=N_CLUSTERS, n_init=60)
kmeans.fit(data)
pred_classes = kmeans.predict(data)
数据在1到13之间归一化。如何绘制kmeans聚类? 我正在尝试按照本教程(右图)http://scikit-learn.org/stable/auto_examples/cluster/plot_kmeans_silhouette_analysis.html 但这个例子仅适用于两个功能,我有8个。