Getting Started
Bring Your Own
Extending PyKEEN
Reference
generalized_harmonic_numbers()
pykeen.nn
Appendix
Calculate the generalized harmonic numbers from 1 to n (both inclusive).
n (int) – the maximum number for which the generalized harmonic numbers are calculated
p (float) – the power, typically negative
shape: (n,) the first \(n\) generalized harmonic numbers
ndarray
See also
https://en.wikipedia.org/wiki/Harmonic_number#Generalizations