code: def __init__(
      self,
      n_users,
      n_items,
      input_dim,
      seed,
      n_z,
      layers,
      loss_type,
      act_fn,
      U,
      V,
      lambda_u,
      lambda_v,
      lambda_r,
      lambda_w,
      lr=0.001,
  ):
      self.n_users = n_users
      self.n_items = n_items
      self.input_dim = input_dim
      self.n_z = n_z
      self.layers = layers
      self.loss_type = loss_type
      self.act_fn = act_fn
      self.seed = seed
      self.lambda_u = lambda_u
      self.lambda_v = lambda_v
      self.lambda_r = lambda_r
      self.lambda_w = lambda_w
      self.lr = lr
      self.U_init = tf.constant(U)
      self.V_init = tf.constant(V)
  
      self._build_graph()
  
imports: import tensorflow.compat.v1
  from ..cdl.cdl import act_functions
label_desc: Use image node_id 1 to create a new Model object  with example: obj = Model(n_users, n_items, input_dim, seed, n_z, layers, loss_type, act_fn, U, V, lambda_u, lambda_v, lambda_r, lambda_w, lr)