905652cdd63ae7116fe58f74856e9caf5340345a,python/ray/tune/integration/xgboost.py,TuneReportCallback,_get_report_dict,#TuneReportCallback#Any#,57

Before Change



    def _get_report_dict(self, env):
        // Only one worker should report to Tune
        result_dict = dict(env.evaluation_result_list)
        if not self._metrics:
            report_dict = result_dict
        else:
            report_dict = {}

After Change


        if isinstance(evals_log, OrderedDict):
            // xgboost>=1.3
            result_dict = flatten_dict(evals_log, delimiter="-")
            for k in list(result_dict):
                result_dict[k] = result_dict[k][-1]
        else:
            // xgboost<1.3
            result_dict = dict(evals_log)
        if not self._metrics:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: ray-project/ray
Commit Name: 905652cdd63ae7116fe58f74856e9caf5340345a
Time: 2020-12-12
Author: krfricke@users.noreply.github.com
File Name: python/ray/tune/integration/xgboost.py
Class Name: TuneReportCallback
Method Name: _get_report_dict


Project Name: keras-team/keras
Commit Name: 79edae58d5892c5a7eb19b68f9e79dfae4682e20
Time: 2016-09-09
Author: kuza55@gmail.com
File Name: keras/backend/tensorflow_backend.py
Class Name: Function
Method Name: __call__


Project Name: OpenMined/PySyft
Commit Name: 59d4bbaaf06850e2dfb357855f50b05f6c9aadb1
Time: 2020-10-02
Author: skywind29@users.noreply.github.com
File Name: syft/frameworks/torch/fl/utils.py
Class Name:
Method Name: scale_model