Statistical-Learning-Method_Code icon indicating copy to clipboard operation
Statistical-Learning-Method_Code copied to clipboard

K-means clustering

Open xiongda777 opened this issue 4 years ago • 0 comments

K-means clustering计算兰德系数时

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

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

xiongda777 avatar May 17 '21 03:05 xiongda777