What are the main steps of the spectral clustering algorithm?
Last updated
Build an affinity matrix
W(Gaussian kernel, k-NN, or ε-neighbourhood) and compute the LaplacianL = D - Wor a normalized variant likeL_sym.Take the eigenvectors of the k smallest eigenvalues as columns of an n × k matrix
U(the eigengap heuristic suggests k). Row-normalise it forL_sym.Run k-means on the rows of
U. Point i gets row i's label.