def __init__(self, x_metrics, y_metrics, y_hat, model, l0, l1, training_values):
    self._y = y_metrics
    self._y_hat = y_hat
    self.model = model
    self.l0 = ArrayUtils.convert_to_array(l0)
    self.l1 = ArrayUtils.convert_to_array(l1)
    self.training_values = training_values
    (self._x0, self._x1) = self.split_or_duplicate_x(x_metrics)
    self.max_ll = self.model.fun
    self.coeff_size = self._x0.shape[1]
    self.lambda_0_coefficients = self.model.x[0:self.coeff_size].reshape((- 1), 1)
    self.lambda_1_coefficients = self.model.x[self.coeff_size:].reshape((- 1), 1)
    self.train_length = len(training_values[0])
def __init__(self, x_metrics, y_metrics, y_hat, model, l0, l1, training_values):
    self._y = y_metrics
    self._y_hat = y_hat
    self.model = model
    self.l0 = ArrayUtils.convert_to_array(l0)
    self.l1 = ArrayUtils.convert_to_array(l1)
    self.training_values = training_values
    (self._x0, self._x1) = self.split_or_duplicate_x(x_metrics)
    self.max_ll = self.model.fun
    self.coeff_size = self._x0.shape[1]
    self.lambda_0_coefficients = self.model.x[0:self.coeff_size].reshape((- 1), 1)
    self.lambda_1_coefficients = self.model.x[self.coeff_size:].reshape((- 1), 1)
    self.train_length = len(training_values[0])