Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

Fix BatchTuner test #981

Merged
merged 3 commits into from
Apr 16, 2019
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
4 changes: 4 additions & 0 deletions test/tuner_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ def switch(dispatch_type, dispatch_name):
'optimize_mode': 'maximize'
}
}
if dispatch_name == 'BatchTuner':
experiment_config['searchSpacePath'] = 'batchtuner_search_space.json'
else:
experiment_config['searchSpacePath'] = 'search_space.json'
dump_yml_content(config_path, experiment_config)

def test_builtin_dispatcher(dispatch_type, dispatch_name):
Expand Down
8 changes: 8 additions & 0 deletions test/tuner_test/batchtuner_search_space.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"combine_params":
{
"_type" : "choice",
"_value" : [{"x": 1},
{"x": 100}]
}
}