f98d8886d3ee70765debc6ab06ed71ef891a91bd,niftynet/evaluation/base_evaluator.py,DataFrameAggregator,__call__,#DataFrameAggregator#,174

Before Change


        self.func = func

    def __call__(self, result_dict):
        pdf = self.func(result_dict[self.group_by])
        new_group_by = tuple(pdf.index.names)
        result_dict[new_group_by]=result_dict[new_group_by].combine_first(pdf)
        return result_dict

After Change


        self.func = func

    def __call__(self, result_dict):
        return self.func(result_dict[self.group_by])

class ScalarAggregator(DataFrameAggregator):
    
    This class defines a simple aggregator that groups metrics and applies an
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

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: DataFrameAggregator
Method Name: __call__


Project Name: ray-project/ray
Commit Name: 36e1f20e9cfa1d8f3fb969b7deb2086eac883b73
Time: 2020-09-08
Author: clarkzinzow@gmail.com
File Name: python/ray/util/dask/scheduler.py
Class Name:
Method Name: dask_task_wrapper


Project Name: keras-team/autokeras
Commit Name: 7b9304f6430a1ba4f6792f943da9e0695d2b7fa2
Time: 2020-11-05
Author: r.bharath.ec@gmail.com
File Name: autokeras/engine/hyperparameter.py
Class Name: HyperParameter
Method Name: add_to_hp