090b20a6dc31cb152505523e5f48c87f6142278c,auto_ml/predictor.py,Predictor,train,#Predictor#,213
Before Change
subpredictor_column_descriptions, subpredictor_type_of_estimator = self._make_subpredictor_column_descriptions(self.column_descriptions)
subpredictor1 = Predictor(type_of_estimator=subpredictor_type_of_estimator, column_descriptions=subpredictor_column_descriptions)
// NOTE that we will be mutating the input X here by stripping off the y values.
subpredictor1.train(raw_training_data=X, perform_feature_selection=True, X_test=X_test, y_test=y_test, ml_for_analytics=True, compute_power=1, take_log_of_y=False, add_cluster_prediction=False, model_names=["XGBRegressor"])
print("made it past subpredictor1")
if self.take_log_of_y:
y = [math.log(val) for val in y]
After Change
if self.subpredictor_count > 0:
subpredictor_column_descriptions, subpredictor_type_of_estimator = self._make_subpredictor_column_descriptions(self.column_descriptions)
subpredictor1 = Predictor(type_of_estimator=subpredictor_type_of_estimator, column_descriptions=subpredictor_column_descriptions)
// print(X[:3])
// NOTE that we will be mutating the input X here by stripping off the y values.
subpredictor1.train(raw_training_data=X, perform_feature_selection=True, X_test=X_test, y_test=y_test, ml_for_analytics=True, compute_power=1, take_log_of_y=False, add_cluster_prediction=False, model_names=["XGBRegressor"])
print("made it past subpredictor1")
if self.take_log_of_y:
y = [math.log(val) for val in y]

In pattern: SUPERPATTERN
Frequency: 7
Non-data size: 2
Instances
Project Name: ClimbsRocks/auto_ml
Commit Name: 090b20a6dc31cb152505523e5f48c87f6142278c
Time: 2016-08-24
Author: ClimbsBytes@gmail.com
File Name: auto_ml/predictor.py
Class Name: Predictor
Method Name: train
Project Name: microsoft/nni
Commit Name: 165756cc19a19db0e75c128ccc97eff3579af1c3
Time: 2020-12-05
Author: Yuge.Zhang@microsoft.com
File Name: examples/nas/darts/search.py
Class Name:
Method Name:
Project Name: lene/nn-wtf
Commit Name: 4014f8854c023c479e4071f8d7cbf1e22cae67ac
Time: 2016-02-19
Author: lene.preuss@gmail.com
File Name: main.py
Class Name:
Method Name: run_final_training
Project Name: ray-project/ray
Commit Name: 86cff17e7ef1b355e1ab4862ccd664ed4c856227
Time: 2020-03-30
Author: rliaw@berkeley.edu
File Name: python/ray/util/sgd/torch/examples/cifar_pytorch_example.py
Class Name:
Method Name: train_example
Project Name: microsoft/nni
Commit Name: 165756cc19a19db0e75c128ccc97eff3579af1c3
Time: 2020-12-05
Author: Yuge.Zhang@microsoft.com
File Name: examples/nas/enas/search.py
Class Name:
Method Name:
Project Name: OpenNMT/OpenNMT-py
Commit Name: d314a48ed4a95926aece62f554cecb4544b5acd5
Time: 2019-11-12
Author: pltrdy@gmail.com
File Name: onmt/trainer.py
Class Name: Trainer
Method Name: validate
Project Name: ray-project/ray
Commit Name: 7cad64837042dc1da4cae4a4f8d47b1891fbc136
Time: 2020-12-04
Author: xianyang.liu@intel.com
File Name: python/ray/util/sgd/tests/test_torch_failure.py
Class Name:
Method Name: test_resize