当前位置:网站首页>Spectral clustering | Laplace matrix
Spectral clustering | Laplace matrix
2022-07-23 11:13:00 【I'm a girl, I don't program yuan】
List of articles
The concept of spectral clustering
The essence of spectrum clustering is to use the similarity between samples , After dimensionality reduction, use clustering algorithm to cluster nodes .
The eigenvalue of the Laplace matrix used is called “ Spectrum ”.
Laplace matrix
① Sample similarity matrix S:
We have n Samples , The similarity between two samples can be obtained by using some similarity measurement method . Such as Gaussian similarity :
S i , j = e x p ( − ∣ ∣ x i − x j ∣ ∣ 2 2 2 σ 2 ) S_{i,j}=exp(-\frac{||x_i-x_j||_2^2}{2\sigma^2}) Si,j=exp(−2σ2∣∣xi−xj∣∣22)
Get the similarity matrix of the sample , Write it down as S.
② Adjacency matrix A:
For each sample point , take k The nearest neighbor acts as its neighbor node , Construct adjacency matrix A.
That is, if i yes j Of k Close neighbors and j yes i Of k a near neighbor , be A i , j = S i , j A_{i,j}=S_{i,j} Ai,j=Si,j, otherwise A i , j = 0 A_{i,j}=0 Ai,j=0
③ Degree matrix D:
D It's a diagonal matrix , The diagonal element is the degree of each node , The rest of the elements are 0.
④ Non standardized Laplace matrix :
L=D-A
⑤ Standardized Laplace matrix :
L s y m = D − 1 2 L D − 1 2 L_{sym}=D^{-\frac{1}{2}}LD^{-\frac{1}{2}} Lsym=D−21LD−21
here L s y m L_{sym} Lsym There is an important property : Of Laplace matrix 0 Multiplicity of eigenvalues k Equal to the number of connected components in its corresponding graph .
Steps of spectrum clustering
Input : Sample set D=(𝑥1,𝑥2,…,𝑥𝑛), Dimension after dimension reduction m, Clustering method , Dimension after clustering y
Output : Clustering 𝐶(𝑐1,𝑐2,…𝑐y).
①~⑤: ditto , Find the standardized Laplace matrix ∈ R n ∗ n R_{n*n} Rn∗n
⑥ Find out L s y m L_{sym} Lsym The eigenvalues of the , Take the smallest m Eigenvalues , Find the corresponding eigenvector , Form a n*m Matrix , That is, the characteristic matrix after dimension reduction , Each line corresponds to a sample point .
⑦ Standardize the matrix
⑧ Cluster the normalized eigenvector matrix ( Such as k-means)
边栏推荐
猜你喜欢

JDBC learning and simple encapsulation

JDBC database connection pool

Web server failed to start. Port 8080 was already in use.

Powerbi Getting Started Guide

Master slave synchronization step read / write separation + self encountered error sharing

Dictionary creation and copying

Briefly describe the features and application scenarios of redis

With only 5000 lines of code, AI renders 100 million landscape paintings on v853

Activiti工作流使用之流程结构介绍

大厂面试机器学习算法(5)推荐系统算法
随机推荐
[pytho-flask笔记5]蓝图简单使用
check the manual that corresponds to your MySQL server version for the right syntax to use near ‘ord
视、音频分开的网站内容如何合并?批量下载代码又该如何编写?
Déploiement du projet (version abrégée)
Pycharm occupies C disk
MySQL statement queries all child nodes of a level node
Activiti工作流使用之流程结构介绍
Install enterprise pycharm and Anaconda
通用视图,序列化器
ShardingSphere分库分表方案
框架介绍mvt
Compare the advantages and disadvantages of RDB and AOF modes of redis
9. Ray tracing
手风琴效果
Concepts and differences of bit, bit, byte and word
IMG tag settings height and width are invalid
十年架构五年生活-01毕业之初
Flask蓝图
SQL常见面试题目与答案整理
2.启动函数返回值的剖析