通常靠人工输入或者我们的经验来决定。因为数据集中有多少个聚类,往往搞不清楚:

肘部法则(Elbow Method):
选择不同的K,然后观察代价函数J,然后找肘部在哪里,然后选择它;但是有时候这个肘部找不到,所以它不是万能的办法。

根据实际情况来决定K的值是多少:

通常靠人工输入或者我们的经验来决定。因为数据集中有多少个聚类,往往搞不清楚:
肘部法则(Elbow Method):
选择不同的K,然后观察代价函数J,然后找肘部在哪里,然后选择它;但是有时候这个肘部找不到,所以它不是万能的办法。
根据实际情况来决定K的值是多少:
本文标题:选择聚类数(Choosing the number of cl
本文链接:https://www.haomeiwen.com/subject/cltqyxtx.html
网友评论