class_docstr: RotatE: Knowledge Graph Embedding by Relational Rotation in Complex Space.
  https://arxiv.org/abs/1902.10197
class_docstr_tok: ["RotatE",":","Knowledge","Graph","Embedding","by","Relational","Rotation","in","Complex","Space",".","https",":","\/\/arxiv.org\/abs\/1902.10197"]
code: def __init__(self, gamma, embed_dim):
      super(RotatEScore, self).__init__()
      self.epsilon = 1e-12
      self.gamma = gamma
      self.emb_init = self._get_init_weight(embed_dim)
  
imports: import math
  import numpy
  from numpy.random import RandomState
  import paddle
  import paddle.nn
  import paddle.nn.functional
  from paddle.nn.functional import log_sigmoid
label_desc: Use image node_id 1 to create a new RotatEScore object from inherited base classes: ScoreFunc with example: obj = RotatEScore(gamma, embed_dim)