22856afbd44b8179199f7629a54dea13043cdd5d,niftynet/evaluation/base_evaluator.py,CachedSubanalysisEvaluator,evaluate_next,#CachedSubanalysisEvaluator#Any#Any#Any#,118
Before Change
for _, evaluationset in tasksets:
for evaluation, sub in evaluationset:
results = evaluation(subject_id, data, sub)
for group_by in results:
metrics[group_by].extend(results[group_by])
cache.clear()
return metrics
After Change
// run grouped evaluations
for _, evaluationset in tasksets:
for evaluation, sub in evaluationset:
results = evaluation(subject_id, data, sub)
metrics.update_all(results)
cache.clear()
return metrics
class DataFrameAggregator(object):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances Project Name: NifTK/NiftyNet
Commit Name: 22856afbd44b8179199f7629a54dea13043cdd5d
Time: 2018-02-16
Author: eli.gibson@gmail.com
File Name: niftynet/evaluation/base_evaluator.py
Class Name: CachedSubanalysisEvaluator
Method Name: evaluate_next
Project Name: NifTK/NiftyNet
Commit Name: 22856afbd44b8179199f7629a54dea13043cdd5d
Time: 2018-02-16
Author: eli.gibson@gmail.com
File Name: niftynet/evaluation/base_evaluator.py
Class Name: CachedSubanalysisEvaluator
Method Name: evaluate_next
Project Name: NifTK/NiftyNet
Commit Name: 22856afbd44b8179199f7629a54dea13043cdd5d
Time: 2018-02-16
Author: eli.gibson@gmail.com
File Name: niftynet/evaluation/base_evaluator.py
Class Name: BaseEvaluator
Method Name: evaluate_from_generator
Project Name: NifTK/NiftyNet
Commit Name: 22856afbd44b8179199f7629a54dea13043cdd5d
Time: 2018-02-16
Author: eli.gibson@gmail.com
File Name: niftynet/evaluation/base_evaluator.py
Class Name: BaseEvaluator
Method Name: evaluate_next