33851dea0f6c75ca1e685037393ea7160506b53a,auto_ml/predictor.py,Predictor,_prepare_for_training,#Predictor#Any#,207

Before Change


                print("These were the bad values")
                print(bad_vals)
                indices_to_delete = set(indices_to_delete)
                X = [row for idx, row in enumerate(X) if idx not in indices_to_delete]

        return X, y

After Change


        // Remove the output column from the dataset, and store it into the y varaible
        y = list(X_df.pop(self.output_column))

        print("removed the output column")

        // If this is a classifier, try to turn all the y values into proper ints
        // Some classifiers play more nicely if you give them category labels as ints rather than strings, so we"ll make our jobs easier here if we can. 
        if self.type_of_estimator == "classifier":
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: ClimbsRocks/auto_ml
Commit Name: 33851dea0f6c75ca1e685037393ea7160506b53a
Time: 2016-10-08
Author: climbsbytes@gmail.com
File Name: auto_ml/predictor.py
Class Name: Predictor
Method Name: _prepare_for_training


Project Name: dmlc/gluon-cv
Commit Name: b7988369f77e12525604e2613b279c13f041f484
Time: 2019-12-04
Author: wuxun.zhang@intel.com
File Name: scripts/pose/simple_pose/validate.py
Class Name:
Method Name:


Project Name: Hironsan/anago
Commit Name: b1ec0299de53bdc03870c39b00a1c88ff35cf0ea
Time: 2018-06-01
Author: hiroki.nakayama.py@gmail.com
File Name: anago/callbacks.py
Class Name: F1score
Method Name: on_epoch_end