linziyingzz / Peace-agreement

G12's repositories for mining possible pattern between peace agreements data and conflicts data
MIT License
1 stars 0 forks source link

Problem on the clustering module #6

Closed linziyingzz closed 3 years ago

linziyingzz commented 3 years ago

Hi~ I find some problem in the clustering module. It seems like the number of clusters are fixed and can not be changed. Also, it would be nice to make it more flexible.

zhoulingcc commented 3 years ago

Maybe you can use the variable of n_clusters to make the number of clusters more flexible, don't use the default number in the sklearn.cluster.KMeans .

s2070762 commented 3 years ago

I know k-means clustering as well. In cluster analysis, the k-means algorithm can be used to partition the input data set into k clusters. Hope this could help you.

linziyingzz commented 3 years ago

Thx! look more into k-means help solve my problem. Thx guys!