code: def _init_params(self):
      params_length = np.array(
          [
              1,
              1,
              self.n_user,
              self.n_item,
              self.n_user * self.k,
              self.n_item * self.k,
              self.n_vocab * self.k,
          ]
      )
      self.params_idx = params_length.cumsum()
  
      self.params = np.zeros(params_length.sum())
      self.params[0] = self.alpha
      self.params[1] = 1.0  # kappa init
      self.params[
          self.params_idx[3] : self.params_idx[4]
      ] = self.gamma_u.ravel()
      self.params[
          self.params_idx[4] : self.params_idx[5]
      ] = self.gamma_i.ravel()
  
file_path: cornac/cornac/models/hft/hft.py
imports: import numpy
  import scipy.optimize
label_desc: Use image node_id 2 for calling the Model obj's underlying member method code with example usage: obj._init_params() without return types