0
Follow
0
View

K-Means on age and weight

daoqi_2004 注册会员
2023-01-25 22:01

I think you don't fully understand k-means.

What actually is happening that every iteration the centroids are recalculated to minimize the distance between them and the data points. (in the first iteration they are selected randomly or by other initialization).

When the process is ended we recalculate for each data point the distance from it to the centroids and the min distance will determine which set this data point is part of. Therefore the centroids will usually not converge to any data point, actually if that happens it is a sign that your hyperparams can be optimized (decrease k for instance).

About the Author

Question Info

Publish Time
2023-01-25 22:01
Update Time
2023-01-25 22:01

Related Question

Pandas 数据处理 | 多个数据表怎么合并(merge)

Grails项目部署到heroku后JSESSIONID cookie属性未设置安全

xbox one主机激活开发者模式失败

Apollo Angular v2的多个端点从json加载

如何重写python函数“get_dummies”使用pyspark?

cryptonite:为什么' digestFromByteString '什么都没有?

如何改变let值onClick在反应

mongodb封装工具包

python程序运行不了

推送推送IOS通知,onOpen调用无需点击