Getting Started
Bring Your Own
Extending PyKEEN
Reference
compute_log_expected_power()
pykeen.nn
Appendix
Compute \(sum( ln( E[X_i^p_i] ) )\).
Does so efficiently by using sorted batching and vectorization.
k_values (ndarray) – shape: (n,) Upper bounds.
powers (ndarray) – shape: (n,) Exponents.
memory_limit_elements (int) – Max number of float elements in the temporary matrix buffer. 10^7 elements ~ 80MB RAM.
The scalar log-value.
float