code: def __init__(
      self,
      node_type,
      edge_type,
      node_max_id,
      edge_max_id,
      ent_dim,
      rel_dim,
      num_negs=5,
      margin=1.0,
      l1=True,
      metric_name="mrr",
      corrupt="both",
      *args,
      **kwargs,
  ):
      super(TransH, self).__init__(
          node_type,
          edge_type,
          node_max_id,
          edge_max_id,
          ent_dim,
          rel_dim,
          num_negs=num_negs,
          l1=l1,
          metric_name=metric_name,
          corrupt=corrupt,
          *args,
          **kwargs,
      )
      if ent_dim != rel_dim:
          raise ValueError(
              "Entity dim and Relation dim" "should be equal in TransH"
          )
      self.margin = margin
      self.hyper_vector = tf_euler.utils.layers.Embedding(
          edge_max_id + 1, ent_dim
      )
  
file_path: euler/examples/TransX/transH.py
imports: from transX import TransX
  import tensorflow
  import tf_euler
label_desc: Use image node_id 1 to create a new TransH object from inherited base classes: TransX with example: obj = TransH(node_type, edge_type, node_max_id, edge_max_id, ent_dim, rel_dim, num_negs, margin, l1, metric_name, corrupt)