ecb4dacbf793ee4276dd7ad4625bf2cb53feb9a1,deeppavlov/paramsearch.py,,main,#,48

Before Change


    best_config = config_init.copy()
    for i, param_name in enumerate(best_params_dict.keys()):
        if param_name != target_metric:
            best_config = params_helper.insert_value_or_dict_into_config(best_config, param_paths[i],
                                                                         best_params_dict[param_name])

    best_model_filename = pipeline_config_path.with_name(pipeline_config_path.name.replace(".json", "_cvbest.json"))
    save_json(best_config, best_model_filename)
    log.info("Best model saved in json-file: {}".format(best_model_filename))

After Change


    best_config = config_init
    for i, param_name in enumerate(best_params_dict.keys()):
        if param_name != target_metric:
            params_helper.insert_value_or_dict_into_config(best_config, param_paths[i], best_params_dict[param_name])

    best_model_filename = pipeline_config_path.with_suffix(".cvbest.json")
    save_json(best_config, best_model_filename)
    log.info("Best model saved in json-file: {}".format(best_model_filename))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: deepmipt/DeepPavlov
Commit Name: ecb4dacbf793ee4276dd7ad4625bf2cb53feb9a1
Time: 2018-11-17
Author: yoptar@gmail.com
File Name: deeppavlov/paramsearch.py
Class Name:
Method Name: main


Project Name: deepmipt/DeepPavlov
Commit Name: ecb4dacbf793ee4276dd7ad4625bf2cb53feb9a1
Time: 2018-11-17
Author: yoptar@gmail.com
File Name: deeppavlov/core/common/cross_validation.py
Class Name:
Method Name: change_savepath_for_model


Project Name: deepmipt/DeepPavlov
Commit Name: ecb4dacbf793ee4276dd7ad4625bf2cb53feb9a1
Time: 2018-11-17
Author: yoptar@gmail.com
File Name: deeppavlov/core/common/params_search.py
Class Name: ParamsSearch
Method Name: initialize_params_in_config