Getting Started
Bring Your Own
Extending PyKEEN
Reference
generate_num_candidates_and_ranks()
pykeen.nn
Appendix
Generate random number of candidates, and coherent ranks.
num_ranks (int) – the number of ranks to generate
int
max_num_candidates (int) – the maximum number of candidates (e.g., the number of entities)
seed (Optional[int]) – the random seed.
Optional
Tuple[ndarray, ndarray]
Tuple
ndarray
shape: (num_ranks,) a pair of integer arrays, ranks and num_candidates for each individual ranking task