hatvis.learning.hyperedge_prediction#
- hatvis.learning.hyperedge_prediction(H, test_fraction=0.2, method='mean_jaccard', negative='size_matched', random_state=None)[source]#
Evaluate hyperedge prediction by hiding a fraction of the hyperedges.
The hidden hyperedges are positives; negatives are random vertex sets of the same sizes (
"size_matched") or clique negatives: random vertex sets taken from the clique expansion neighbourhood of a positive ("motif", harder; cf. Yoon et al. 2020). Scores are computed on the remaining hypergraph; the function returns the ROC AUC and the average precision.