TransE is a knowledge graph embedding model. For each triplet (h, r, t), it learns embeddings such that h + r ≈ t. The energy function penalizes violations of this relation.
E(h,r,t)=∣∣h+r−t∣∣2Implement:
transe_score(h, r, t)
Computes TransE energy for triplet.
No results yet
Run your code to check it against the examples, or submit to run every test.