Kmeans
- https://scikit-learn.org/stable/modules/generated/sklearn.cluster.KMeans.html
- 代码示例
kmeans = KMeans(n_clusters = 2).fit(feature_map) centers = kmeans.cluster_centers_ label = kmeans.labels_[idx]
Search
May 18, 2022, 1 min read
kmeans = KMeans(n_clusters = 2).fit(feature_map)
centers = kmeans.cluster_centers_
label = kmeans.labels_[idx]