Getting Started
Bring Your Own
Extending PyKEEN
Reference
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
int
p (float) – the power, typically negative
float
ndarray
shape: (n,) the first \(n\) generalized harmonic numbers
See also
https://en.wikipedia.org/wiki/Harmonic_number#Generalizations