2639d96db0e2811bc7744d4d771b1b93bb6169f8,auto_ml/predictor.py,Predictor,train_ensemble,#Predictor#Any#Any#Any#Any#Any#Any#,314

Before Change


            predictions_on_ensemble_data = ensembler._get_all_predictions(data_for_final_ensembling)
            print("predictions_on_ensemble_data")
            print(predictions_on_ensemble_data)
            data_for_final_ensembling = pd.concat([data_for_final_ensembling, predictions_on_ensemble_data], axis=1)
            print("data_for_final_ensembling")
            print(data_for_final_ensembling)

        else:

After Change


            ensembler = utils.Ensemble(ensemble_predictors=self.ensemble_predictors, type_of_estimator=self.type_of_estimator, method=ensemble_method)


            ml_predictor = Predictor(type_of_estimator=self.type_of_estimator, column_descriptions=self.column_descriptions, name=self.name)

            print("Using machine learning to ensemble together a bunch of trained estimators!")
            data_for_final_ensembling = data_for_final_ensembling.reset_index()
            ml_predictor.train(raw_training_data=data_for_final_ensembling, ensembler=ensembler)


            // predictions_on_ensemble_data = ensembler._get_all_predictions(data_for_final_ensembling)
            // data_for_final_ensembling = pd.concat([data_for_final_ensembling, predictions_on_ensemble_data], axis=1)

            self.trained_pipeline = ml_predictor

        else:

            // Create an instance of an Ensemble object that will get predictions from all the trained subpredictors
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: ClimbsRocks/auto_ml
Commit Name: 2639d96db0e2811bc7744d4d771b1b93bb6169f8
Time: 2016-11-06
Author: climbsbytes@gmail.com
File Name: auto_ml/predictor.py
Class Name: Predictor
Method Name: train_ensemble


Project Name: lene/nn-wtf
Commit Name: 4065c4b2cc1ebe2eeb829e8ff3f620a4f510b096
Time: 2016-02-26
Author: lene.preuss@gmail.com
File Name: nn_wtf/neural_network_graph.py
Class Name: NeuralNetworkGraph
Method Name: predict


Project Name: mindsdb/mindsdb
Commit Name: 075d8259ebf88c65b69bff882f75ec711d97c45f
Time: 2019-05-24
Author: george@cerebralab.com
File Name: integration_testing/run_travis_tests.py
Class Name:
Method Name: