Expand description
Edge sampling and train/test edge splits (ALGO-TR-009).
Utilities for randomly sampling edges and splitting a graph’s edge set into disjoint train/test partitions. Essential for link prediction evaluation: the test edges are held out, and the model must predict them.
Structs§
- Edge
Split - Result of an edge train/test split.
Functions§
- sample_
edges - Uniformly sample
countedges from the graph without replacement. - split_
edges - Split graph edges into train and test sets.
- split_
edges_ connected - Split edges ensuring the training graph remains connected.