-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
K means 簇中心更新的计算问题 #32
Comments
同样有疑问,我觉得你是对的
同样有疑问并且觉得你的想法是对的 |
这是来自QQ邮箱的假期自动回复邮件。你好,我最近正在休假中,无法亲自回复你的邮件。我将在假期结束后,尽快给你回复。
|
我赞成您的看法,并且我觉得应该将那个分母修改为 group.shape[0] |
作者您好!十分感谢你开源的机器学习代码,受益良多,想请教一下:在上面的函数中,为什么使用center = center / Xarray.shape[0] (簇的和除以总样本个数),而不是center = center / len(group) 即每一簇的中心点的均值应该是该簇的和除以该簇的数目
代码位置如下⬇ 十分感激!
Statistical-Learning-Method_Code/Clustering/K-means_Clustering/K-means_Clustering.py
Line 101 in 01f6d6c
The text was updated successfully, but these errors were encountered: