Skip to content

Commit

Permalink
FEATURE add new flag to gen_HPOlib-run.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mfeurer committed Aug 7, 2015
1 parent 6a113fa commit 7da6a0b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion scripts/gen_HPOlib-run.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ def main():
type=int, help="seed step value")
parser.add_argument("-stop-seed", "--stop_seed", default=10000,
type=int, help="seed stop value")
parser.add_argument("--ignore-missing-optimizers", action="store_true",
help="Ignore missing optimizers. If not present, "
"this script will stop if an installed optimizer is"
"not found in the benchmark directory.")

args, unknown = parser.parse_known_args()

Expand Down Expand Up @@ -81,7 +85,8 @@ def main():
outputfile.write("HPOlib-run --cwd " + benchmark_dir + " -o " + path + " -s " + str(seed) + "\n")
else:
print "Optimizer " + optVersion + " doesn't exist in directory \"" + benchmark_dir + "\""
sys.exit(1)
if not args.ignore_missing_optimizers:
sys.exit(1)

print "******************HPOlib-run Commands********************"
print "Using Benchmark function directory: " + benchmark_dir
Expand Down

0 comments on commit 7da6a0b

Please sign in to comment.