Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
nni
Commits
54118c34
Commit
54118c34
authored
Apr 16, 2019
by
demianzhang
Committed by
xuehui
Apr 16, 2019
Browse files
Fix BatchTuner test (#981)
* Update naive_trial.py * Fix test BatchTuner
parent
dd04c73a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
test/tuner_test.py
test/tuner_test.py
+4
-0
test/tuner_test/batchtuner_search_space.json
test/tuner_test/batchtuner_search_space.json
+8
-0
No files found.
test/tuner_test.py
View file @
54118c34
...
@@ -49,6 +49,10 @@ def switch(dispatch_type, dispatch_name):
...
@@ -49,6 +49,10 @@ def switch(dispatch_type, dispatch_name):
'optimize_mode'
:
'maximize'
'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
)
dump_yml_content
(
config_path
,
experiment_config
)
def
test_builtin_dispatcher
(
dispatch_type
,
dispatch_name
):
def
test_builtin_dispatcher
(
dispatch_type
,
dispatch_name
):
...
...
test/tuner_test/batchtuner_search_space.json
0 → 100644
View file @
54118c34
{
"combine_params"
:
{
"_type"
:
"choice"
,
"_value"
:
[{
"x"
:
1
},
{
"x"
:
100
}]
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment