b3463f05941b7a08f1e9564ceb1402f6f17f0ae2,deepchem/utils/test/test_evaluate.py,TestEvaluator,test_evaluator_dc_metric,#TestEvaluator#,16

Before Change



  def test_evaluator_dc_metric(self):
    Test an evaluator on a dataset.
    model = dc.models.MultitaskRegressor(1, 5)
    transformers = []
    evaluator = Evaluator(model, self.dataset, transformers)
    metric = dc.metrics.Metric(dc.metrics.mae_score)
    multitask_scores = evaluator.compute_model_performance([metric])

After Change



  def test_evaluator_dc_metric(self):
    Test an evaluator on a dataset.
    evaluator = Evaluator(self.model, self.dataset, [])
    metric = dc.metrics.Metric(dc.metrics.mae_score)
    multitask_scores = evaluator.compute_model_performance(metric)
    assert isinstance(multitask_scores, dict)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: deepchem/deepchem
Commit Name: b3463f05941b7a08f1e9564ceb1402f6f17f0ae2
Time: 2020-07-17
Author: bharath@Bharaths-MBP.zyxel.com
File Name: deepchem/utils/test/test_evaluate.py
Class Name: TestEvaluator
Method Name: test_evaluator_dc_metric


Project Name: deepchem/deepchem
Commit Name: b3463f05941b7a08f1e9564ceb1402f6f17f0ae2
Time: 2020-07-17
Author: bharath@Bharaths-MBP.zyxel.com
File Name: deepchem/utils/test/test_evaluate.py
Class Name: TestEvaluator
Method Name: test_generator_evaluator_dc_metric_multitask


Project Name: deepchem/deepchem
Commit Name: b3463f05941b7a08f1e9564ceb1402f6f17f0ae2
Time: 2020-07-17
Author: bharath@Bharaths-MBP.zyxel.com
File Name: deepchem/utils/test/test_evaluate.py
Class Name: TestEvaluator
Method Name: test_evaluator_dc_metric_singletask


Project Name: deepchem/deepchem
Commit Name: b3463f05941b7a08f1e9564ceb1402f6f17f0ae2
Time: 2020-07-17
Author: bharath@Bharaths-MBP.zyxel.com
File Name: deepchem/utils/test/test_evaluate.py
Class Name: TestEvaluator
Method Name: test_generator_evaluator_dc_metric_multitask_single_point