from sklearn.cluster import KMeans kmeansModel = KMeans(n_clusters=3, random_state=46) clusters_pred = kmeansModel.fit_predict(X) ...
確定! 回上一頁