Getting Started
Reference
pykeen.nn
Appendix
unstructured_model_interaction
Evaluate the SimplE interaction function.
h (FloatTensor) – shape: (batch_size, num_heads, 1, 1, dim) The head representations.
FloatTensor
t (FloatTensor) – shape: (batch_size, 1, 1, num_tails, dim) The tail representations.
p (int) – The parameter p for selecting the norm.
int
power_norm (bool) – Whether to return the powered norm instead.
bool
shape: (batch_size, num_heads, num_relations, num_tails) The scores.