class_docstr: Group class: created by Auditor when identifying violation.
class_docstr_tok: ["Group","class",":","created","by","Auditor","when","identifying","violation","."]
docstr: Constructor for Group Class.
  
  :param func: the linear function that defines the group
  :param group_size: the proportion of the dataset in the group
  :param weighted_disparity: group_size*FP or FN disparity
  :param disparity: FN or FP disparity (absolute value)
  :param disparity_direction: indicator whether fp in group > fp_baseline, returns {1, -1}
  :param group_rate: FN or FN rate in the group
docstr_tok: ["Constructor","for","Group","Class",".",":","param","func",":","the","linear","function","that","defines","the","group",":","param","group_size",":","the","proportion","of","the","dataset","in","the","group",":","param","weighted_disparity",":","group_size","*","FP","or","FN","disparity",":","param","disparity",":","FN","or","FP","disparity","(","absolute","value",")",":","param","disparity_direction",":","indicator","whether","fp","in","group",">","fp_baseline",",","returns","{","1",",","-1","}",":","param","group_rate",":","FN","or","FN","rate","in","the","group"]
code: def __init__(
      self,
      func,
      group_size,
      weighted_disparity,
      disparity,
      disparity_direction,
      group_rate,
  ):
      """Constructor for Group Class.
  
      :param func: the linear function that defines the group
      :param group_size: the proportion of the dataset in the group
      :param weighted_disparity: group_size*FP or FN disparity
      :param disparity: FN or FP disparity (absolute value)
      :param disparity_direction: indicator whether fp in group > fp_baseline, returns {1, -1}
      :param group_rate: FN or FN rate in the group
      """
      super(Group, self).__init__()
      self.func = func
      self.group_size = group_size
      self.weighted_disparity = weighted_disparity
      self.disparity = disparity
      self.disparity_direction = disparity_direction
      self.group_rate = group_rate
  
file_path: AIF360/aif360/algorithms/inprocessing/gerryfair/auditor.py
imports: import numpy
  import pandas
  from sklearn import linear_model
  from aif360.algorithms.inprocessing.gerryfair.reg_oracle_class import RegOracle
  from aif360.algorithms.inprocessing.gerryfair import clean
label_desc: Use image node_id 1 to create a new Group object from inherited base classes: object with example: obj = Group(func, group_size, weighted_disparity, disparity, disparity_direction, group_rate)