f98d8886d3ee70765debc6ab06ed71ef891a91bd,niftynet/evaluation/base_evaluator.py,BaseEvaluator,evaluate_from_generator,#BaseEvaluator#Any#,60

Before Change


        return self.evaluate_from_generator(generator)

    def evaluate_from_generator(self, generator):
        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):

After Change



        :return: a dictionary of pandas.DataFrame objects
        
        all_results = []
        for subject_id, data,interp_orders in generator:
            all_results += self.evaluate_next(subject_id, data, interp_orders)
        return self.aggregate(all_results)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: NifTK/NiftyNet
Commit Name: f98d8886d3ee70765debc6ab06ed71ef891a91bd
Time: 2018-02-16
Author: yipenghu@gmail.com
File Name: niftynet/evaluation/base_evaluator.py
Class Name: BaseEvaluator
Method Name: evaluate_from_generator


Project Name: NifTK/NiftyNet
Commit Name: f98d8886d3ee70765debc6ab06ed71ef891a91bd
Time: 2018-02-16
Author: yipenghu@gmail.com
File Name: niftynet/evaluation/base_evaluator.py
Class Name: BaseEvaluator
Method Name: evaluate_next


Project Name: NifTK/NiftyNet
Commit Name: f98d8886d3ee70765debc6ab06ed71ef891a91bd
Time: 2018-02-16
Author: yipenghu@gmail.com
File Name: niftynet/evaluation/base_evaluator.py
Class Name: CachedSubanalysisEvaluator
Method Name: evaluate_next