Learn Before
Concept
Spectral Clustering Algorithm
Algorithm : Input : Similarity Matrix and number of clusters k.
- Represent all data points as nodes in a graph.
- Build the similarity graph given a similarity matrix. Calculate it's weighted adjacency matrix W. Let these have the dimentionality n x n.
- Build the unnormalized Laplacian L (n x n)
- If we wish to cluster the data into k points (user defined), then we consider the first k eigenvectors of the matrix L.
- Build an n x k matrix with each of the first k eigenvectors as it's columns. Let us call this matrix M.
- Interpret each ROW of the matrix M as a separate data point .
- Run the k-mean clustering algorithm to put these distinct data points into clusters.
0
1
Updated 2020-03-15
Tags
Data Science