Skip to content

Commit

Permalink
ENH: enable dq-submit
Browse files Browse the repository at this point in the history
  • Loading branch information
Sudnya Diamos committed Apr 3, 2017
1 parent 0827127 commit 7a53411
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions launch-many.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
import subprocess
from pathlib import Path

logger = logging.getLogger("Launch-many")
logger = logging.getLogger("Launcher")

class Launcher:
"""
Launcher class for calling dq to launch train.py with a list of
hyperparameter.
Launcher class for calling dq to launch train.py with each entry in a
list of hyperparameters
"""
def __init__(self, default_config, param, experiment_name):
"""
Expand Down Expand Up @@ -54,7 +54,7 @@ def __init__(self, default_config, param, experiment_name):

#call dq TODO
DQ_CFG = output_cfg_path
#os.system("DQ_CFG=%s dq-submit dq-launch.sh"%output_cfg_path)
os.system("DQ_CFG=%s dq-submit dq-launch.sh"%output_cfg_path)


def get_cfg_path(self, output_dir, param_name, val):
Expand Down Expand Up @@ -102,7 +102,7 @@ def get_default_config():


def main():
parser = argparse.ArgumentParser(description="Data Loader")
parser = argparse.ArgumentParser(description="Launcher")
parser.add_argument("-v", "--verbose", default=False, action="store_true")
parser.add_argument("-e", "--experiment_name", default=None)
parser.add_argument("-b", "--base_config", default=None)
Expand Down

0 comments on commit 7a53411

Please sign in to comment.