class_docstr: TransR model.
docstr: init
code: def __init__(
      self,
      data_reader,
      hidden_size,
      margin,
      learning_rate,
      args,
      optimizer="adam",
  ):
      """init"""
      self._neg_times = args.neg_times
      super(TransR, self).__init__(
          model_name="TransR",
          data_reader=data_reader,
          hidden_size=hidden_size,
          margin=margin,
          learning_rate=learning_rate,
          args=args,
          optimizer=optimizer,
      )
      self.construct()
  
file_path: PGL/legacy/examples/pgl-ke/model/TransR.py
imports: import numpy
  import paddle.fluid
  from .Model import Model
  from .utils import lookup_table
label_desc: Use image node_id 1 to create a new TransR object from inherited base classes: Model with example: obj = TransR(data_reader, hidden_size, margin, learning_rate, args, optimizer)