code: def gamma(self, y_true, y_pred, sens):
      pos_0 = np.mean(y_pred[sens == 0] == 1)
      pos_1 = np.mean(y_pred[sens == 1] == 1)
      if pos_0 == 0 or pos_1 == 0:
          return 0
      return min(pos_0 / pos_1, pos_1 / pos_0)
  
file_path: AIF360/aif360/algorithms/inprocessing/celisMeta/StatisticalRate.py
imports: import numpy
  from aif360.algorithms.inprocessing.celisMeta.General import General
label_desc: Use image node_id 6 for calling the StatisticalRate obj's underlying member method code with example usage: obj.gamma(y_true, y_pred, sens) and returns: min, int