#主成分分析
pca=PCA(n_components=0.9)
data=pca.fit_transform(cross)
#降维
x=data[:500]
x.shape()
#对类别预设为4
km=KMeans(n_cluster
K-means聚类分析
最新推荐文章于 2024-05-15 10:17:24 发布
#主成分分析
pca=PCA(n_components=0.9)
data=pca.fit_transform(cross)
#降维
x=data[:500]
x.shape()
#对类别预设为4
km=KMeans(n_cluster