聚类算法Clustering-KMeans/DBSCAN/DenPeak/NormalizeCut/RCC

本文结构安排

  • 经典聚类算法:线性聚类 Kmeans
  • 经典聚类算法:非线性聚类 DBSCAN、谱聚类
  • 新兴聚类算法:DenPeak,RCC

K-means

K-means clustering is a method of vector quantization, originally from signal processing, that is popular for cluster analysis in data mining. k-means clustering aims to partition n observations into k clusters in which each observation belongs to the cluster with the nearest mean, serving as a prototype of the cluster.

Given a set of observations ( x 1 , x 2 , . . . , x n ) (x_{1},x_{2},..., x_{n}) (x1,x2,...,xn),where each observation is a d-dimensional real vector,k-means clustering aims to partition the n observations into k ( ∈ n ) k(\in n) k(n) set ( S 1 , S 2 , . . . , S k ) (S_{1},S_{2},..., S_{k}) (S1,S2,...,Sk) so as to minimize the within-cluster sum of variance,the objective is to find:

a r g min ⁡ s ∑ i = 1 k ∑ x ∈ S i ∣ ∣ x − μ i ∣ ∣ 2 arg\min_{s}\sum_{i=1}^{k}\sum_{x \in S_{i}}||x-\mu_{i}||^{2} argsmini=1kxSixμi2

where μ i \mu_{i} μi is the mean of points in S i S_{i} Si.

1.png

2.png

3.png

4.png

Kmeans伪代码.png

DBSCAN

Density-based spatial clustering of applications with noise (DBSCAN) is a data clustering algorithm.It
is a density-based clustering algorithm: given a set of points in some space, it groups together points that are closely packed together (points with many nearby neighbors), marking as outliers points that lie alone in low-density regions (whose nearest neighbors are too far away). DBSCAN is one of the most common clustering algorithms and also most cited in scienti c literature.

Consider a set of points in some space to be clustered. For the purpose of DBSCAN clustering, the points are classi ed as core points,density-reachable points and outliers, as follows:

  • A point p is a core point if at least minPts points are within distance ε \varepsilon ε ( ε \varepsilon ε

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值