cogdl.models.emb.rotate
¶
Module Contents¶
Classes¶
Implementation of RotatE model from the paper `”RotatE: Knowledge Graph Embedding by Relational Rotation in Complex Space” |
-
class
cogdl.models.emb.rotate.
RotatE
(nentity, nrelation, hidden_dim, gamma, double_entity_embedding=False, double_relation_embedding=False)[source]¶ Bases:
cogdl.models.emb.knowledge_base.KGEModel
Implementation of RotatE model from the paper “RotatE: Knowledge Graph Embedding by Relational Rotation in Complex Space” <https://openreview.net/forum?id=HkgEQnRqYQ>. borrowed from KnowledgeGraphEmbedding<https://github.com/DeepGraphLearning/KnowledgeGraphEmbedding>