K-means & Mean shift algorithm

 个人理解的简单思想,很多改进的或变形的还没有来得及看!

K-means

1.先确定好分类数目K,并选取这K个类的中心点。

2.对任一点求它到这K个目标点的距离,离谁最近就划为该类。

3.更新这个类的中心,即所有点的均值。

4.直至这些中心点不再更新。

Meanshift

1.选取好特征空间(特征及度量?),任意找一个种子点,设定好窗口。

2.找这个窗口的密度中心。若种子点与它不重合,则更新为当前点(即密度中心作为新的种子点)。

3.以新种子点作为窗口中心重复上面的步骤直至收敛。

以下是英文的一些解释

 

K-means clustering:

Basic idea: randomly initialize thekcluster centers, and iterate between the two steps we just saw.
   1.Randomly initialize the clustercenters, c1, ...,cK
   2.Given cluster centers, determinepoints in each cluster
For each point p, find the closestciPut p into clusteri
   3.Given points in each cluster, solveforci
Set ci to be the mean of points inclusteri
    4.If ci have changed, repeat Step 2

Properties

Will always converge tosome solution
Can be a “local minimum”
does not always find the globalminimum of objective function:

 

Meanshift algorithm:

The mean shift algorithm seeks modes or local maxima of density in the feature space
 

Cluster: all data points in theattraction basin of a mode
Attraction basin: the region for whichall trajectories lead to the same mode
 
Find features (color, gradients, texture, etc )
Initialize windows at individual featurepoints
Perform mean shift for each window untilconvergence
Merge windows that end up near the same“peak” or mode
 
 
Pros :
Does not assume shape on clusters
One parameter choice (window size)
Generic technique
Find multiple modes
Cons :
Selection of window size
Does not scale well with dimensionof feature space

 

 

 

 

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值