class_docstr: This class computes a set of aggregated balance measures that represents
  how balanced the given dataset is along the given columns of interest.
class_docstr_tok: ["This","class","computes","a","set","of","aggregated","balance","measures","that","represents","how","balanced","the","given","dataset","is","along","the","given","columns","of","interest","."]
docstr: Returns aggregate balance measures for the given dataset and
  columns of interest.
  
  The following measures are computed:
  * Atkinson Index - https://en.wikipedia.org/wiki/Atkinson_index
  * Theil Index (L and T) - https://en.wikipedia.org/wiki/Theil_index
  
  :param dataset: The dataset to compute aggregate measures on.
  :type dataset: pd.DataFrame
  :return: A pandas DataFrame that contains the names and values of
      aggregate balance measures for the given dataset and
      columns of interest.
  :rtype: pd.DataFrame
docstr_tok: ["Returns","aggregate","balance","measures","for","the","given","dataset","and","columns","of","interest",".","The","following","measures","are","computed",":","*","Atkinson","Index","-","https",":","\/\/en.wikipedia.org\/wiki\/Atkinson_index","*","Theil","Index","(","L","and","T",")","-","https",":","\/\/en.wikipedia.org\/wiki\/Theil_index",":","param","dataset",":","The","dataset","to","compute","aggregate","measures","on",".",":","type","dataset",":","pd.DataFrame",":","return",":","A","pandas","DataFrame","that","contains","the","names","and","values","of","aggregate","balance","measures","for","the","given","dataset","and","columns","of","interest",".",":","rtype",":","pd.DataFrame"]
code: def measures(self, dataset: pd.DataFrame) -> pd.DataFrame:
      """
      Returns aggregate balance measures for the given dataset and
      columns of interest.
  
      The following measures are computed:
      * Atkinson Index - https://en.wikipedia.org/wiki/Atkinson_index
      * Theil Index (L and T) - https://en.wikipedia.org/wiki/Theil_index
  
      :param dataset: The dataset to compute aggregate measures on.
      :type dataset: pd.DataFrame
      :return: A pandas DataFrame that contains the names and values of
          aggregate balance measures for the given dataset and
          columns of interest.
      :rtype: pd.DataFrame
      """
      aggregate_measures_dict = {}
      benefits = (
          dataset.groupby(self.cols_of_interest).size()
          / dataset.shape[0]
      )
  
      for measure, func in self.AGGREGATE_METRICS.items():
          aggregate_measures_dict[measure.value] = [func(benefits)]
  
      aggregate_measures = pd.DataFrame.from_dict(
          aggregate_measures_dict
      )
      return aggregate_measures
  
file_path: responsible-ai-toolbox/responsibleai/responsibleai/databalanceanalysis/aggregate_balance_measures.py
imports: from typing import Callable, Dict, List
  import numpy
  import pandas
  from responsibleai.databalanceanalysis.balance_measures import BalanceMeasures
  from responsibleai.databalanceanalysis.constants import Measures
label_desc: Use image node_id 2 for calling the AggregateBalanceMeasures obj's underlying member method code with example usage: obj.measures(dataset) and returns: aggregate_measures