880c3f3e2ae7c361f7475a3dfcdf352df71239ca,deeppavlov/models/evolution/evolution_many_inputs_model.py,KerasEvolutionClassificationManyInputsModel,initialize_all_nodes,#KerasEvolutionClassificationManyInputsModel#Any#,216

Before Change


                    l2_reg = node_params.get("coef_regul_l2")
                    if callable(node_func):
                        if l2_reg is None:
                            model_layers[params["nodes"][node_str_id]] = Dropout(rate=params["dropout_rate"])(
                                node_func(**node_params))
                        else:
                            node_params.pop("coef_regul_l2")
                            model_layers[params["nodes"][node_str_id]] = Dropout(rate=params["dropout_rate"])(

After Change


                    l2_reg = node_params.get("coef_regul_l2")
                    if callable(node_func):
                        if l2_reg is None:
                            model_layers[params["nodes"][node_str_id]] = node_func(**node_params)
                        else:
                            node_params.pop("coef_regul_l2")
                            model_layers[params["nodes"][node_str_id]] = node_func(**node_params,
                                                                                   kernel_regularizer=l2(l2_reg))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: deepmipt/DeepPavlov
Commit Name: 880c3f3e2ae7c361f7475a3dfcdf352df71239ca
Time: 2018-06-26
Author: dilyara.rimovna@gmail.com
File Name: deeppavlov/models/evolution/evolution_many_inputs_model.py
Class Name: KerasEvolutionClassificationManyInputsModel
Method Name: initialize_all_nodes


Project Name: deepmipt/DeepPavlov
Commit Name: cd34443cc5e355bf6b0b7d28a6fd530830a3bfa3
Time: 2018-06-08
Author: dilyara.rimovna@gmail.com
File Name: deeppavlov/models/evolution/evolution_many_inputs_model.py
Class Name: KerasEvolutionClassificationManyInputsModel
Method Name: initialize_all_nodes


Project Name: deepmipt/DeepPavlov
Commit Name: 1059f91b098219af02ac8f85cd93df7c7ea2535b
Time: 2018-06-07
Author: dilyara.rimovna@gmail.com
File Name: deeppavlov/models/evolution/evolution_many_inputs_model.py
Class Name: KerasEvolutionClassificationManyInputsModel
Method Name: initialize_all_nodes


Project Name: deepmipt/DeepPavlov
Commit Name: 37e19f1900e5aeccab2ded15d4be54ba53000d06
Time: 2018-06-26
Author: dilyara.rimovna@gmail.com
File Name: deeppavlov/models/evolution/evolution_many_inputs_model.py
Class Name: KerasEvolutionClassificationManyInputsModel
Method Name: initialize_all_nodes