层次聚类与K-means
Posted ColinQin
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了层次聚类与K-means相关的知识,希望对你有一定的参考价值。
- Hierarchical clustering(层次聚类)
作用:Clustering organizes things that are close into groups
算法步骤:
a).Find closest two thing
b).Put them together
c).Find next closest
算法结果:A tree showing how close things are to each other
http://gallery.r-enthusiasts.com/RGraphGallery.php?graph=79
- K-means
作用:Final estimate of cluster centroids
算法步骤:
a)Fix a number of clusters
b) Get “centroids” of each cluster
c)Assign things to closest centroid
d)Reclaculate centroids
算法结果:按设定的cluster值分成相应和groups.
以上是关于层次聚类与K-means的主要内容,如果未能解决你的问题,请参考以下文章
聚类算法--K-means和k-mediods/密度聚类/层次聚类