22856afbd44b8179199f7629a54dea13043cdd5d,niftynet/evaluation/base_evaluator.py,BaseEvaluator,evaluate_from_generator,#BaseEvaluator#Any#,58
Before Change
for subject_id, data,interp_orders in generator:
next_result = self.evaluate_next(subject_id, data,
interp_orders)
for group_by in next_result:
all_results[group_by].extend(next_result[group_by])
all_results = self.aggregate(all_results)
return all_results
def evaluate_next(self, subject_id, data, interp_orders):
After Change
all_results = ResultsDictionary()
for subject_id, data,interp_orders in generator:
next_result = self.evaluate_next(subject_id, data, interp_orders)
all_results.update_all(next_result)
all_results = self.aggregate(all_results)
return all_results
def evaluate_next(self, subject_id, data, interp_orders):
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: 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: 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_next