b3463f05941b7a08f1e9564ceb1402f6f17f0ae2,deepchem/utils/test/test_evaluate.py,TestEvaluator,test_generator_evaluator_dc_metric_multitask,#TestEvaluator#,27
Before Change
def test_generator_evaluator_dc_metric_multitask(self):
Test generator evaluator on a generator.
model = dc.models.MultitaskRegressor(1, 5)
generator = model.default_generator(
self.dataset, pad_batches=False)
transformers = []
evaluator = GeneratorEvaluator(model, generator, transformers)
metric = dc.metrics.Metric(dc.metrics.mae_score)
multitask_scores = evaluator.compute_model_performance([metric])
assert isinstance(multitask_scores, dict)
assert len(multitask_scores) == 1
After Change
Test generator evaluator on a generator.
generator = self.model.default_generator(
self.dataset, pad_batches=False)
evaluator = GeneratorEvaluator(self.model, generator, [])
metric = dc.metrics.Metric(dc.metrics.mae_score)
multitask_scores = evaluator.compute_model_performance(metric)
assert isinstance(multitask_scores, dict)
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_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
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
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