hatvis.community.spectral_coclustering#

hatvis.community.spectral_coclustering(H, n_clusters, random_state=None)[source]#

Simultaneous clustering of vertices and hyperedges (spectral co-clustering, Dhillon 2001).

Bipartite spectral partitioning of the (weighted) incidence matrix, as implemented in scikit-learn. Returns (vertex labels, hyperedge labels); a pair of equal labels defines a bicluster — a block of the incidence matrix that the seriated matrix plot can highlight. Empty rows or columns receive the label -1.