Getting Started
Bring Your Own
Extending PyKEEN
Reference
pykeen.nn
Appendix
Compute absolute sizes of splits from given relative sizes.
Note
This method compensates for rounding errors, and ensures that the absolute sizes sum up to the total number.
n_total (int) – The total number.
ratios (Sequence[float]) – The relative ratios (should sum to 1).
The absolute sizes.
tuple[int, …]