614ff7af666ecaab6dfa42f7377ec4c1608b1ff6,aif360/datasets/bank_dataset.py,BankDataset,__init__,#BankDataset#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#,19

Before Change


        :obj:`GermanDataset`.
        

        filepath = os.path.join(os.path.dirname(os.path.abspath(__file__)),
                                "../data/raw/bank/bank-additional-full.csv")
        df = pd.read_csv(filepath, sep="", na_values=na_values)

        super(BankDataset, self).__init__(df=df, label_name=label_name,
            favorable_classes=favorable_classes,
            protected_attribute_names=protected_attribute_names,

After Change


        :obj:`GermanDataset`.
        

        filepath = os.path.join(os.path.dirname(os.path.abspath(__file__)),
            "..", "data", "raw", "bank", "bank-additional-full.csv")

        try:
            df = pd.read_csv(filepath, sep="", na_values=na_values)
        except IOError as err:
            print("IOError: {}".format(err))
            print("To use this class, please download the following file:")
            print("\n\thttps://archive.ics.uci.edu/ml/machine-learning-databases/00222/bank-additional.zip")
            print("\nunzip it and place the files, as-is, in the folder:")
            print("\n\t{}\n".format(os.path.abspath(os.path.join(
               os.path.abspath(__file__), "..", "..", "data", "raw", "bank"))))
            import sys
            sys.exit(1)

        super(BankDataset, self).__init__(df=df, label_name=label_name,
            favorable_classes=favorable_classes,
            protected_attribute_names=protected_attribute_names,
            privileged_classes=privileged_classes,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 25

Instances


Project Name: IBM/AIF360
Commit Name: 614ff7af666ecaab6dfa42f7377ec4c1608b1ff6
Time: 2018-09-14
Author: hoffman.sc@gmail.com
File Name: aif360/datasets/bank_dataset.py
Class Name: BankDataset
Method Name: __init__


Project Name: IBM/AIF360
Commit Name: 614ff7af666ecaab6dfa42f7377ec4c1608b1ff6
Time: 2018-09-14
Author: hoffman.sc@gmail.com
File Name: aif360/datasets/adult_dataset.py
Class Name: AdultDataset
Method Name: __init__


Project Name: IBM/AIF360
Commit Name: 614ff7af666ecaab6dfa42f7377ec4c1608b1ff6
Time: 2018-09-14
Author: hoffman.sc@gmail.com
File Name: aif360/datasets/compas_dataset.py
Class Name: CompasDataset
Method Name: __init__


Project Name: IBM/AIF360
Commit Name: 614ff7af666ecaab6dfa42f7377ec4c1608b1ff6
Time: 2018-09-14
Author: hoffman.sc@gmail.com
File Name: aif360/datasets/bank_dataset.py
Class Name: BankDataset
Method Name: __init__