class_docstr: Class implementing the Learner in the FairFictPlay algorithm for rich subgroup fairness in [KRNW18].
      
docstr: Constructor the class
  
  :param X: pandas dataframe of attributes
  :param y: tuple of predictions
  :param predictor: regressor with sklearn api (e.g. fit(), predict() methods). ex: LinearRegression()
docstr_tok: ["Constructor","the","class",":","param","X",":","pandas","dataframe","of","attributes",":","param","y",":","tuple","of","predictions",":","param","predictor",":","regressor","with","sklearn","api","(","e.g",".","fit","(",")",",","predict","(",")","methods",")",".","ex",":","LinearRegression","(",")"]
code: def __init__(self, X, y, predictor):
      """Constructor the class
  
      :param X: pandas dataframe of attributes
      :param y: tuple of predictions
      :param predictor: regressor with sklearn api (e.g. fit(), predict() methods). ex: LinearRegression()
      """
      self.X = X
      self.y = y
      self.predictor = predictor
  
imports: import numpy
  import copy
  from aif360.algorithms.inprocessing.gerryfair.reg_oracle_class import RegOracle
label_desc: Use image node_id 1 to create a new Learner object  with example: obj = Learner(X, y, predictor)