class_docstr: Quaternion Knowledge Graph Embedding.
  https://arxiv.org/abs/1904.10281
class_docstr_tok: ["Quaternion","Knowledge","Graph","Embedding",".","https",":","\/\/arxiv.org\/abs\/1904.10281"]
code: def get_neg_score(self, head, rel, tail, neg_head=False):
      if neg_head:
          return self._get_neg_score(tail, rel, head)
      else:
          return self._get_neg_score(head, rel, tail)
  
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 3 for calling the QuatEScore obj's underlying member method code with example usage: obj.get_neg_score(head, rel, tail, neg_head) and returns: self, self