code: def __init__(
      self,
      U,
      V,
      n_user,
      n_item,
      n_vocab,
      k=200,
      lambda_u=0.01,
      lambda_v=0.01,
      eta=0.01,
      a=1,
      b=0.01,
      max_iter=100,
      seed=None,
  ):
      self.k = k
      self.lambda_u = lambda_u
      self.lambda_v = lambda_v
      self.eta = eta
      self.a = a
      self.b = b
      self.max_iter = max_iter
      self.U = U
      self.V = V
      self.n_item = n_item
      self.n_user = n_user
      self.n_vocab = n_vocab
      self.seed = seed
      rng = get_rng(self.seed)
  
      # LDA variables
      self.theta = rng.random_sample([self.n_item, self.k])
      self.theta = (
          self.theta / self.theta.sum(1)[:, np.newaxis]
      )  # normalize
      self.beta = rng.random_sample([self.n_vocab, self.k])
      self.beta = self.beta / self.beta.sum(0)  # normalize
      self.phi_sum = np.zeros([self.n_vocab, self.k]) + self.eta
  
file_path: cornac/cornac/models/ctr/ctr.py
imports: import numpy
  from ...utils import get_rng
label_desc: Use image node_id 1 to create a new Model object  with example: obj = Model(U, V, n_user, n_item, n_vocab, k, lambda_u, lambda_v, eta, a, b, max_iter, seed)