Getting Started
Bring Your Own
Extending PyKEEN
Reference
pykeen.nn
Appendix
Bases: SingleSelection
SingleSelection
Random node selection.
Initialize the selection stragegy.
num_anchors (int) – the number of anchors to select
random_seed (int | None) – the random seed to use.
Methods Summary
rank(edge_index)
rank
Rank nodes.
Methods Documentation
edge_index (ndarray) – shape: (m, 2) the edge_index, i.e., adjacency list.
(n,) the node IDs sorted decreasingly by anchor selection preference.
ndarray