8b87f16fcb698ae0f2ae3ccdae76605d92d9619e,deeppavlov/models/evolution/neuroevolution_param_generator.py,NetworkAndParamsEvolution,initialize_params_in_config,#NetworkAndParamsEvolution#Any#,119

Before Change


        params_for_search = {}
        evolving_params = []

        for param_name in basic_params.keys():
            if type(basic_params[param_name]) is dict:
                if basic_params[param_name].get("choice"):
                    params_for_search[param_name] = list(basic_params[param_name]["values"])
                    evolving_params.append(param_name)
                elif basic_params[param_name].get("range"):
                    params_for_search[param_name] = deepcopy(basic_params[param_name])
                    evolving_params.append(param_name)
                else:
                    // NOT evolving params
                    params[param_name] = deepcopy(basic_params[param_name])
            else:
                // NOT evolving params
                params[param_name] = deepcopy(basic_params[param_name])

        params_for_search = deepcopy(self.sample_params(**params_for_search))

After Change


        params_for_search = {}
        evolving_params = []

        for param_name in list(basic_params.keys()):
            if basic_params[param_name]:
                if type(basic_params[param_name]) is dict:
                    if basic_params[param_name].get("choice"):
                        params_for_search[param_name] = list(basic_params[param_name]["values"])
                        evolving_params.append(param_name)
                    elif basic_params[param_name].get("range"):
                        params_for_search[param_name] = deepcopy(basic_params[param_name])
                        evolving_params.append(param_name)
                    else:
                        // NOT evolving params
                        params[param_name] = deepcopy(basic_params[param_name])
                else:
                    // NOT evolving params
                    params[param_name] = deepcopy(basic_params[param_name])
        if basic_params:
            params_for_search = deepcopy(self.sample_params(**params_for_search))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 7

Instances


Project Name: deepmipt/DeepPavlov
Commit Name: 8b87f16fcb698ae0f2ae3ccdae76605d92d9619e
Time: 2018-06-26
Author: dilyara.rimovna@gmail.com
File Name: deeppavlov/models/evolution/neuroevolution_param_generator.py
Class Name: NetworkAndParamsEvolution
Method Name: initialize_params_in_config


Project Name: deepmipt/DeepPavlov
Commit Name: 6fc8009e51af7b6f0b59fef517d365d5903ede39
Time: 2018-04-18
Author: dilyara.rimovna@gmail.com
File Name: deeppavlov/models/evolution/neuroevolution_param_generator.py
Class Name: NetworkAndParamsEvolution
Method Name: initialize_params_in_config


Project Name: suavecode/SUAVE
Commit Name: 28d261b88f0c64ddd5dbad172f847a1a86b8226c
Time: 2018-08-30
Author: ebotero@stanford.edu
File Name: trunk/SUAVE/Optimization/Nexus.py
Class Name: Nexus
Method Name: add_mission_variables


Project Name: joaopalotti/trectools
Commit Name: 570fe7b3b62ffec06bcc39f91b2d24c461c7ace1
Time: 2019-07-17
Author: joaopalotti@gmail.com
File Name: trectools/trec_pool.py
Class Name: TrecPool
Method Name: operate_pools