class_docstr: Specific class for knowledge graph completion task.
  
  ComplEx from paper `Complex Embeddings for Simple Link Prediction
  <http://proceedings.mlr.press/v48/trouillon16.pdf>`__.
  
  
  Parameters
  ----------
  input_dropout: float
      Dropout for node_emb and rel_emb. Default: `0.0`
  
  loss_name: str
      The loss type selected fot the KG completion task. Default: `'BCELoss'`
code: def __init__(self, input_dropout=0.0, loss_name="BCELoss"):
      super(ComplEx, self).__init__()
      self.loss_name = loss_name
      self.classifier = ComplExLayer(input_dropout, loss_name)
  
imports: from .....data.data import GraphData
  from ..base import KGCompletionBase
  from .ComplExLayer import ComplExLayer
label_desc: Use image node_id 1 to create a new ComplEx object from inherited base classes: KGCompletionBase with example: obj = ComplEx(input_dropout, loss_name)