Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file modified examples/bumpy_function.py
100644 → 100755
Empty file.
11 changes: 4 additions & 7 deletions tests/unit/test_iterate2.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,16 @@
import os

def test_iterate2( ):
# Note: the metric (yval) is declared in the 'metrics:' section of the
# HPO YAML; the iterate2 CLI no longer takes --metric / --root-dir /
# --wlm / --gpu-count / --cpu-count / --mem-gb (removed in the refactor).
script = """
iterate \
--script ./examples/bumpy_function.py \
--root-dir . \
--optuna-study-name hpo \
--optuna-db-path "sqlite:///iterate_study.db" \
--hpo-yaml examples/bumpy_hpo.yaml \
--optuna-n-trials 10 \
--wlm none \
--metric yval \
--gpu-count 0 \
--cpu-count 1 \
--mem-gb 1
--optuna-n-trials 10
"""
ret = os.system(script)
assert ret == 0
Loading