0d0bf039265afd094eebfd4cd5bb1bc8438a5ec1,deepchem/models/tests/test_api.py,TestAPI,test_singletask_sklearn_rf_user_specified_regression_API,#TestAPI#,100
Before Change
for transformer in transformers:
dataset = transformer.transform(dataset)
regression_metrics = [Metric(metrics.r2_score),
Metric(metrics.mean_squared_error),
Metric(metrics.mean_absolute_error)]
sklearn_model = RandomForestRegressor()
model = SklearnModel(sklearn_model, self.model_dir)
After Change
splitter = dc.splits.SpecifiedSplitter(input_file, "split")
train_dataset, test_dataset = splitter.train_test_split(dataset)
transformers = [dc.transformers.NormalizationTransformer(
transform_y=True, dataset=train_dataset)]
for dataset in [train_dataset, test_dataset]:
for transformer in transformers:
dataset = transformer.transform(dataset)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: deepchem/deepchem
Commit Name: 0d0bf039265afd094eebfd4cd5bb1bc8438a5ec1
Time: 2016-10-30
Author: bharath.ramsundar@gmail.com
File Name: deepchem/models/tests/test_api.py
Class Name: TestAPI
Method Name: test_singletask_sklearn_rf_user_specified_regression_API
Project Name: deepchem/deepchem
Commit Name: 0dfcb436d20ed2f398b124cd26c2690bda5d6d81
Time: 2017-07-30
Author: zqwu@stanford.edu
File Name: examples/qm8/qm8_MPNN.py
Class Name:
Method Name:
Project Name: deepchem/deepchem
Commit Name: 0d0bf039265afd094eebfd4cd5bb1bc8438a5ec1
Time: 2016-10-30
Author: bharath.ramsundar@gmail.com
File Name: deepchem/models/tests/test_api.py
Class Name: TestAPI
Method Name: test_singletask_sklearn_rf_user_specified_regression_API
Project Name: deepchem/deepchem
Commit Name: 0d0bf039265afd094eebfd4cd5bb1bc8438a5ec1
Time: 2016-10-30
Author: bharath.ramsundar@gmail.com
File Name: deepchem/models/tests/test_api.py
Class Name: TestAPI
Method Name: test_singletask_tf_mlp_ECFP_classification_API