hatvis.models.planted_partition#
- hatvis.models.planted_partition(n, n_communities, m, sizes=(2, 3, 4), p_in=0.8, random_state=None)[source]#
Hypergraph stochastic block model with planted communities.
Vertices are split into
n_communitiesequal groups. Each of themhyperedges draws its size uniformly fromsizes; with probabilityp_inall its vertices come from one random community, otherwise from the whole vertex set. Returns the hypergraph and the ground-truth labels.
Examples using hatvis.models.planted_partition#
Community detection on a planted-partition hypergraph
Community detection on a planted-partition hypergraph