code: def convenience_calc_log_likelihood(self, params):
          
          shapes, intercepts, betas = self.convenience_split_params(params)
  
          args = [betas,
                  self.design_3d,
                  self.alt_id_vector,
                  self.rows_to_obs,
                  self.rows_to_alts,
                  self.rows_to_mixers,
                  self.choice_vector,
                  self.utility_transform]
  
          kwargs = {"ridge": self.ridge, "weights": self.weights}
          log_likelihood = general_log_likelihood(*args, **kwargs)
  
          return log_likelihood
docs: Calculates the log-likelihood for this model and dataset.