hatvis.spectral.spectral_clustering#

hatvis.spectral.spectral_clustering(H, n_clusters, kind='normalized', random_state=None, n_init=10)[source]#

Spectral clustering of the vertices with the hypergraph Laplacian (Zhou et al. 2006).

The rows of the \(k\) leading eigenvectors of \(\mathbf{D}_v^{-1/2}\mathbf{B}\mathbf{W}\mathbf{D}_e^{-1}\mathbf{B}^\mathsf{T}\mathbf{D}_v^{-1/2}\) (smallest of the normalized Laplacian) are normalized to unit length and clustered with k-means (Ng, Jordan and Weiss 2001). It approximately minimizes the normalized hypergraph cut.