2ab8c1444facbd46df8767a5badda5b9f1a50c29,tpot/operators/classifiers/base.py,Classifier,_train_and_predict,#Classifier#Any#Any#,37

Before Change


        clf.fit(self.training_features, self.training_classes)

        all_features = input_df.drop(self.non_feature_columns, axis=1).values
        input_df.loc[:, "guess"] = clf.predict(all_features)

        // Store the guesses as a synthetic feature
        return self._add_synth_feature(input_df, operator_args)

After Change


        clf.fit(self.training_features, self.training_classes)

        all_features = np.copy(input_matrix)
        np.delete(all_features, non_feature_columns, axis=1)
        input_matrix[:, GUESS_COL] = clf.predict(all_features)
        // Store the guesses as a synthetic feature
        input_matrix[:, :-1] = input_matrix[GUESS_COL]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: EpistasisLab/tpot
Commit Name: 2ab8c1444facbd46df8767a5badda5b9f1a50c29
Time: 2016-08-01
Author: supacoofoo@gmail.com
File Name: tpot/operators/classifiers/base.py
Class Name: Classifier
Method Name: _train_and_predict


Project Name: scikit-learn-contrib/DESlib
Commit Name: adfcd7c21f3f2fc6077eb00abf4887cd2d567880
Time: 2018-04-06
Author: luiz.gh@gmail.com
File Name: deslib/base.py
Class Name: DS
Method Name: predict_proba


Project Name: EpistasisLab/tpot
Commit Name: 2ab8c1444facbd46df8767a5badda5b9f1a50c29
Time: 2016-08-01
Author: supacoofoo@gmail.com
File Name: tpot/operators/base.py
Class Name: Operator
Method Name: __call__