in scripts/create_metrics_for_epochs.py [0:0]
def parent(expts):
for expt in expts:
print(f"Processing {expt}")
all_results = {}
for first_epoch in range(0, len(EPOCHS), hparams.epochs_per_run):
these_epochs = [
str(e)
for e in EPOCHS[first_epoch : first_epoch + hparams.epochs_per_run]
]
expt_dir = data_dir + "/" + expt
cmd = [
"./create_partial_metrics.py",
f"--gpu={hparams.gpu}",
f"--expt_dir={expt_dir}",
f'--epochs={",".join(these_epochs)}',
]
result = subprocess.run(cmd, capture_output=False, shell=False)
if result.returncode != 0:
sys.exit(result.returncode)