2a9dd55b990d29a1c1e94ef3c9a29f2a7ca124ff,tpot/tpot.py,TPOT,score,#TPOT#Any#Any#,339

Before Change



        for column in training_testing_data.columns.values:
            if type(column) != str:
                training_testing_data.rename(columns={column: str(column).zfill(10)}, inplace=True)

        return self._evaluate_individual(self._optimized_pipeline, training_testing_data)[1]

    def export(self, output_file_name):

After Change


        most_frequent_training_class = Counter(self._training_classes).most_common(1)[0][0]
        training_testing_data.loc[:, "guess"] = most_frequent_training_class

        new_col_names = {}
        for column in training_testing_data.columns.values:
            if type(column) != str:
                new_col_names[column] = str(column).zfill(10)
        training_testing_data.rename(columns=new_col_names, inplace=True)

        return self._evaluate_individual(self._optimized_pipeline, training_testing_data)[1]

    def export(self, output_file_name):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 9

Instances


Project Name: EpistasisLab/tpot
Commit Name: 2a9dd55b990d29a1c1e94ef3c9a29f2a7ca124ff
Time: 2016-03-11
Author: rso@randalolson.com
File Name: tpot/tpot.py
Class Name: TPOT
Method Name: score


Project Name: EpistasisLab/tpot
Commit Name: 7271b5e99aa1d4d28e8272bab04a6f071e4bc340
Time: 2015-12-09
Author: rso@randalolson.com
File Name: tpot/tpot.py
Class Name: TPOT
Method Name: fit


Project Name: EpistasisLab/tpot
Commit Name: 7271b5e99aa1d4d28e8272bab04a6f071e4bc340
Time: 2015-12-09
Author: rso@randalolson.com
File Name: tpot/tpot.py
Class Name: TPOT
Method Name: predict