c15e52623156084fbd74727dd3f34df2825e2ad3,deeppavlov/core/common/cross_validation.py,,calc_cv_score,#Any#Any#Any#Any#Any#,85

Before Change



    config, dirs_for_saved_models = change_savepath_for_model(config)

    target_metrics = config["train"]["metrics"]
    cv_score = OrderedDict((k, []) for k in target_metrics)
    for data_i in generate_train_valid(data, n_folds=n_folds, is_loo=is_loo):
        iterator = get_iterator_from_config(config, data_i)
        create_dirs_to_save_models(dirs_for_saved_models)

After Change



    config, dirs_for_saved_models = change_savepath_for_model(config)

    cv_score = OrderedDict()
    for data_i in generate_train_valid(data, n_folds=n_folds, is_loo=is_loo):
        iterator = get_iterator_from_config(config, data_i)
        create_dirs_to_save_models(dirs_for_saved_models)
        score = train_evaluate_model_from_config(config, iterator=iterator)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: deepmipt/DeepPavlov
Commit Name: c15e52623156084fbd74727dd3f34df2825e2ad3
Time: 2018-10-29
Author: yoptar@gmail.com
File Name: deeppavlov/core/common/cross_validation.py
Class Name:
Method Name: calc_cv_score


Project Name: catalyst-team/catalyst
Commit Name: 28cedbdaf526489986a9ff06f18e51e65b45a57c
Time: 2019-07-30
Author: tez.romach@gmail.com
File Name: catalyst/dl/callbacks/checkpoint.py
Class Name: CheckpointCallback
Method Name: save_checkpoint


Project Name: shenweichen/DeepCTR
Commit Name: e7bfb58ab7795bca341cbd0a763f6ec200f6315e
Time: 2019-02-17
Author: wcshen1994@163.com
File Name: deepctr/models/din.py
Class Name:
Method Name: get_input