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_communities equal groups. Each of the m hyperedges draws its size uniformly from sizes; with probability p_in all 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

Balanced partitioning and normalized cuts

Balanced partitioning and normalized cuts

Diffusion and group consensus

Diffusion and group consensus

Semi-supervised learning and hyperedge prediction

Semi-supervised learning and hyperedge prediction