8dedfaea2f6f64dfe3b180e8f8d6746919b19c4e,examples/submit_batch_job.py,,copy_conf_file,#Any#Any#Any#Any#,16

Before Change


    assert(template_path != save_path)
    pathsrc = os.path.join(template_path,conf_name)
    pathdst = os.path.join(save_path,conf_name)
    os.system(" ".join(["cp -p",pathsrc,pathdst]))

def get_conf(template_path,conf_name):
    with open(os.path.join(template_path,conf_name), "r") as yaml_file:

After Change


        conf = yaml.load(yaml_file)
    conf["training"]["hyperparam_tuning"] = True //make sure all files like checkpoints and normalization are done locally
    with open(pathdst, "w") as outfile:
        yaml.dump(conf, outfile, default_flow_style=False)

def get_conf(template_path,conf_name):
    with open(os.path.join(template_path,conf_name), "r") as yaml_file:
        conf = yaml.load(yaml_file)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: PPPLDeepLearning/plasma-python
Commit Name: 8dedfaea2f6f64dfe3b180e8f8d6746919b19c4e
Time: 2017-11-18
Author: julian@Julians-MacBook-Pro.local
File Name: examples/submit_batch_job.py
Class Name:
Method Name: copy_conf_file


Project Name: stanfordnlp/stanza
Commit Name: 4eb0ded34a9cbf62bb8bfda48b7ef4b17e43a37c
Time: 2019-08-26
Author: zyh@stanford.edu
File Name: stanfordnlp/utils/prepare_ner_data.py
Class Name:
Method Name: main


Project Name: danforthcenter/plantcv
Commit Name: 42a56f02648bf28758e61865c7e675936ae73843
Time: 2019-06-12
Author: noahfahlgren@gmail.com
File Name: plantcv/parallel/job_builder.py
Class Name:
Method Name: job_builder