hatvis.learning#

Learning on hypergraphs.

  • transductive label propagation with the normalized hypergraph operator (Zhou, Huang and Schölkopf 2006);

  • simplified hypergraph neural network: feature propagation with the HGNN operator of Feng et al. (2019), followed by a linear classifier — the hypergraph analogue of simplified graph convolution (Wu et al. 2019);

  • heuristic hyperedge prediction and its evaluation with negative sampling.

Label spreading, simplified hypergraph neural network, hyperedge prediction.

Functions#

propagation_operator(H[, self_loops])

Normalized propagation operator of the hypergraph.

label_spreading(H, labels[, alpha, ...])

Semi-supervised classification on a hypergraph (Zhou et al. 2006).

hgnn_features(H, X[, n_layers])

Propagate vertex features, \(\mathbf{X}\leftarrow\boldsymbol{\Theta}^{K}\mathbf{X}\) (HGNN operator, linear).

hgnn_classifier(H, X, labels[, n_layers, C])

Simplified HGNN: hgnn_features() + multinomial logistic regression trained on the labeled vertices.

hyperedge_score(H, candidate[, method])

Plausibility score of a candidate vertex set as a hyperedge.

hyperedge_prediction(H[, test_fraction, ...])

Evaluate hyperedge prediction by hiding a fraction of the hyperedges.