#k-means
import matplotlib.pyplot as plt
from sklearn import cluster, datasets, metrics
from sklearn.cluster import KMeans
kmeans_fit = cluster.KMeans(n_clusters = 10).fit(bigbig)
cluster_labels = kmeans_fit.labels_
aat=kmeans_fit.labels_
#查看績效分數
silhouette_avg = metrics.silhouette_score(bigbig, cluster_labels)
print(silhouette_avg)
分群時很正常不會當掉,當要查看績效分數時 就會當掉我從8~32G的電腦都試過了
大約41000筆資料 做過PCA降維了
有別的方法可以看績效嗎?或者我上面是有哪邊有問題才導致這樣呢?有大大的經驗能指點一下嘛!!