code: def __init__(
      self,
      y,
      y_hat,
      protected,
      privileged,
      label,
      verbose=False,
      cutoff=0.5,
      epsilon=0.8,
  ):
      super().__init__(y, y_hat, protected, privileged, verbose)
      checks.check_classification_parameters(
          y, y_hat, protected, privileged, verbose
      )
      cutoff = checks.check_cutoff(self.protected, cutoff, verbose)
      self.cutoff = cutoff
      epsilon = checks.check_epsilon(epsilon)
      self.epsilon = epsilon
  
      sub_confusion_matrix = utils.SubgroupConfusionMatrix(
          y_true=self.y,
          y_pred=self.y_hat,
          protected=self.protected,
          cutoff=self.cutoff,
      )
  
      sub_confusion_matrix_metrics = (
          utils.SubgroupConfusionMatrixMetrics(sub_confusion_matrix)
      )
      df_ratios = utils.calculate_ratio(
          sub_confusion_matrix_metrics, self.privileged
      )
      parity_loss = utils.calculate_parity_loss(
          sub_confusion_matrix_metrics, self.privileged
      )
  
      self._subgroup_confusion_matrix = sub_confusion_matrix
      self._subgroup_confusion_matrix_metrics_object = (
          sub_confusion_matrix_metrics
      )
      self.metric_scores = (
          sub_confusion_matrix_metrics.to_horizontal_DataFrame()
      )
      self.parity_loss = parity_loss
      self.result = df_ratios
      self.label = label
  
file_path: DALEX/python/dalex/dalex/fairness/_group_fairness/object.py
imports: from .None import checks, plot, utils
  from .._basics import checks
  from .._basics._base_objects import _FairnessObject
  from .._basics.exceptions import ParameterCheckError
  from ...None import _global_checks, _theme
label_desc: Use image node_id 1 to create a new GroupFairnessClassification object from inherited base classes: _FairnessObject with example: obj = GroupFairnessClassification(y, y_hat, protected, privileged, label, verbose, cutoff, epsilon)