code: def __init__(
      self, dim_user_embed, dim_item_embed, total_users, total_items
  ):
      super(GMF, self).__init__()
      self.user_latent_factor = LatentFactor(
          num_instances=total_users,
          dim=dim_user_embed,
          name="user_latent_factor",
      )
      self.item_latent_factor = LatentFactor(
          num_instances=total_items,
          dim=dim_item_embed,
          name="item_latent_factor",
      )
      self.item_bias = LatentFactor(
          num_instances=total_items, dim=1, name="item_bias"
      )
      self.mlp = MLP(units_list=[1], use_bias=False)
      self._bce = tf.keras.losses.BinaryCrossentropy(from_logits=True)
  
file_path: openrec/openrec/tf2/recommenders/gmf.py
imports: import tensorflow
  from tensorflow.keras import Model
  from openrec.tf2.modules import LatentFactor, MLP
label_desc: Use image node_id 1 to create a new GMF object from inherited base classes: Model with example: obj = GMF(dim_user_embed, dim_item_embed, total_users, total_items)