diff --git a/examples/bumpy_function.py b/examples/bumpy_function.py old mode 100644 new mode 100755 diff --git a/tests/unit/test_iterate2.py b/tests/unit/test_iterate2.py index cb0fe225..15360b93 100644 --- a/tests/unit/test_iterate2.py +++ b/tests/unit/test_iterate2.py @@ -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 \ No newline at end of file