def METHOD_NAME(self, y_true, y_pred, mask_privileged_group):
    return 0.5 * (self._compute_base_metric(y_true[mask_privileged_group], y_pred[mask_privileged_group]) +
                  self._compute_base_metric(y_true[~mask_privileged_group], y_pred[~mask_privileged_group]))