Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

K-means clustering #26

Open
xiongda777 opened this issue May 17, 2021 · 0 comments
Open

K-means clustering #26

xiongda777 opened this issue May 17, 2021 · 0 comments

Comments

@xiongda777
Copy link

K-means clustering计算兰德系数时

sum_i = np.zeros(3)  #定义一个数组,用于保存聚类结果group_dict中每一类的个数
sum_j = np.zeros(3)  #定义一个数组,用于保存外部标签y_dict中每一类的个数

应该是
sum_i = np.zeros(k)
否则聚类数目不为3时,代码会报错

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant