MCPcopy Create free account
hub / github.com/OUCMachineLearning/OUCML / create_exp_dir

Function create_exp_dir

AutoML/darts-master/rnn/utils.py:32–41  ·  view source on GitHub ↗
(path, scripts_to_save=None)

Source from the content-addressed store, hash-verified

30
31
32def create_exp_dir(path, scripts_to_save=None):
33 if not os.path.exists(path):
34 os.mkdir(path)
35
36 print('Experiment dir : {}'.format(path))
37 if scripts_to_save is not None:
38 os.mkdir(os.path.join(path, 'scripts'))
39 for script in scripts_to_save:
40 dst_file = os.path.join(path, 'scripts', os.path.basename(script))
41 shutil.copyfile(script, dst_file)
42
43
44def save_checkpoint(model, optimizer, epoch, path, finetune=False):

Callers 2

train.pyFile · 0.90
train_search.pyFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected