02ae1275954d243531f1e1fad5d826a78bb77a2e,skopt/utils.py,,point_asdict,#,444

Before Change


    {"name1": 0.66, "name2": 3, "name3": -0.15}
    
    params_dict = {
        k: v for k, v in zip(sorted(search_space.keys()), point_as_list)
    }
    return params_dict

After Change


    >>> point_asdict(search_space, point_as_list)
    {"name1": 0.66, "name2": 3, "name3": -0.15}
    
    params_dict = OrderedDict()
    for k, v in zip(sorted(search_space.keys()), point_as_list):
        params_dict[k] = v
    return params_dict
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: scikit-optimize/scikit-optimize
Commit Name: 02ae1275954d243531f1e1fad5d826a78bb77a2e
Time: 2020-02-11
Author: holgernahrstaedt@gmx.de
File Name: skopt/utils.py
Class Name:
Method Name: point_asdict


Project Name: dask/dask-image
Commit Name: c9fd2c425cb873508ba16221819574400ad2443e
Time: 2018-09-30
Author: jakirkham@gmail.com
File Name: dask_image/ndmeasure/__init__.py
Class Name:
Method Name: extrema


Project Name: jazzband/django-debug-toolbar
Commit Name: 842ed8a0e9d4e4ccadd6114147f8e2805b0a251c
Time: 2013-11-01
Author: aymeric.augustin@m4x.org
File Name: debug_toolbar/panels/headers.py
Class Name: HeaderDebugPanel
Method Name: process_request