12cd0759c82480173978bbeeb8ef9ec5829e6542,deepchem/models/tests/test_generalize.py,TestGeneralization,test_sklearn_transformed_regression,#TestGeneralization#,83

Before Change


        transformer.transform(test_dataset)

    tasks = train_dataset.get_task_names()
    task_types = {task: "regression" for task in tasks}

    model_params = {
      "batch_size": None,

After Change



    verbosity = "high"
    regression_metric = Metric(metrics.r2_score, verbosity=verbosity)
    sklearn_model = LinearRegression()
    model = SklearnModel(sklearn_model, self.model_dir)

    // Fit trained model
    model.fit(train_dataset)
    model.save()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 6

Non-data size: 3

Instances


Project Name: deepchem/deepchem
Commit Name: 12cd0759c82480173978bbeeb8ef9ec5829e6542
Time: 2016-09-19
Author: bharath.ramsundar@gmail.com
File Name: deepchem/models/tests/test_generalize.py
Class Name: TestGeneralization
Method Name: test_sklearn_transformed_regression


Project Name: deepchem/deepchem
Commit Name: 12cd0759c82480173978bbeeb8ef9ec5829e6542
Time: 2016-09-19
Author: bharath.ramsundar@gmail.com
File Name: deepchem/models/tests/test_generalize.py
Class Name: TestGeneralization
Method Name: test_sklearn_regression


Project Name: deepchem/deepchem
Commit Name: ce4a5ca7cab1ea4ae421fbcd3b28205b1e18158d
Time: 2016-09-19
Author: bharath.ramsundar@gmail.com
File Name: deepchem/models/tests/test_overfit.py
Class Name: TestOverfitAPI
Method Name: test_sklearn_regression_overfit


Project Name: deepchem/deepchem
Commit Name: ce4a5ca7cab1ea4ae421fbcd3b28205b1e18158d
Time: 2016-09-19
Author: bharath.ramsundar@gmail.com
File Name: deepchem/models/tests/test_overfit.py
Class Name: TestOverfitAPI
Method Name: test_sklearn_skewed_classification_overfit


Project Name: deepchem/deepchem
Commit Name: 12cd0759c82480173978bbeeb8ef9ec5829e6542
Time: 2016-09-19
Author: bharath.ramsundar@gmail.com
File Name: deepchem/models/tests/test_generalize.py
Class Name: TestGeneralization
Method Name: test_sklearn_classification


Project Name: deepchem/deepchem
Commit Name: ce4a5ca7cab1ea4ae421fbcd3b28205b1e18158d
Time: 2016-09-19
Author: bharath.ramsundar@gmail.com
File Name: deepchem/models/tests/test_overfit.py
Class Name: TestOverfitAPI
Method Name: test_sklearn_classification_overfit