-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathsubmit.py
More file actions
26 lines (21 loc) · 892 Bytes
/
submit.py
File metadata and controls
26 lines (21 loc) · 892 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Wrapper for submit function
@author: thomas
"""
if __name__ == '__main__' and __package__ is None:
from os import sys, path
sys.path.append(path.dirname(path.dirname(path.abspath(__file__))))
import argparse
from src.common.submit import submit
from config.hps import get_hps,override_hps_settings
from agent import agent
if __name__ == "__main__":
'''Set-up training'''
parser = argparse.ArgumentParser()
parser.add_argument('--hp', help='Hyperparameter configuration',default='')
parser.add_argument('--hpsetup', help='Hyperparameter configuration of slurm and hyperparameters and distribution',default='')
parser.add_argument('--no_plot', action='store_true',default=False)
args = parser.parse_args()
submit(args.hp,args.hpsetup,args.no_plot,agent,get_hps,override_hps_settings)