code: def __init__(
      self,
      n_user,
      n_item,
      n_vocab,
      alpha,
      beta_u,
      beta_i,
      gamma_u,
      gamma_i,
      k=10,
      lambda_text=0.1,
      l2_reg=0.001,
      max_iter=50,
      grad_iter=50,
  ):
      self.k = k
      self.lambda_text = lambda_text
      self.l2_reg = l2_reg
      self.grad_iter = grad_iter
      self.max_iter = max_iter
      self.n_item = n_item
      self.n_user = n_user
      self.n_vocab = n_vocab
  
      # Model parameters
      self.alpha = alpha
      self.beta_u = beta_u
      self.beta_i = beta_i
      self.gamma_u = gamma_u
      self.gamma_i = gamma_i
  
      self._init_params()
  
file_path: cornac/cornac/models/hft/hft.py
imports: import numpy
  import scipy.optimize
label_desc: Use image node_id 1 to create a new Model object  with example: obj = Model(n_user, n_item, n_vocab, alpha, beta_u, beta_i, gamma_u, gamma_i, k, lambda_text, l2_reg, max_iter, grad_iter)