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
aa8b09e6
"test/git@developer.sourcefind.cn:OpenDAS/nni.git" did not exist on "e0422c5e464aba6a1a0faceeac1db14f25bd4176"
Commit
aa8b09e6
authored
Jul 18, 2019
by
xuehui
Committed by
chicm-ms
Jul 18, 2019
Browse files
Add "population_size" param for evolution tuner (#1328)
parent
227a4619
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
tools/nni_cmd/config_schema.py
tools/nni_cmd/config_schema.py
+10
-2
No files found.
tools/nni_cmd/config_schema.py
View file @
aa8b09e6
...
...
@@ -70,14 +70,22 @@ common_schema = {
}
}
tuner_schema_dict
=
{
(
'TPE'
,
'Anneal'
,
'SMAC'
,
'Evolution'
):
{
'builtinTunerName'
:
setChoice
(
'builtinTunerName'
,
'TPE'
,
'Anneal'
,
'SMAC'
,
'Evolution'
),
(
'TPE'
,
'Anneal'
,
'SMAC'
):
{
'builtinTunerName'
:
setChoice
(
'builtinTunerName'
,
'TPE'
,
'Anneal'
,
'SMAC'
),
Optional
(
'classArgs'
):
{
'optimize_mode'
:
setChoice
(
'optimize_mode'
,
'maximize'
,
'minimize'
),
},
Optional
(
'includeIntermediateResults'
):
setType
(
'includeIntermediateResults'
,
bool
),
Optional
(
'gpuNum'
):
setNumberRange
(
'gpuNum'
,
int
,
0
,
99999
),
},
(
'Evolution'
):
{
'builtinTunerName'
:
setChoice
(
'builtinTunerName'
,
'Evolution'
),
Optional
(
'classArgs'
):
{
'optimize_mode'
:
setChoice
(
'optimize_mode'
,
'maximize'
,
'minimize'
),
'population_size'
:
setNumberRange
(
'population_size'
,
int
,
0
,
99999
),
},
Optional
(
'gpuNum'
):
setNumberRange
(
'gpuNum'
,
int
,
0
,
99999
),
},
(
'BatchTuner'
,
'GridSearch'
,
'Random'
):
{
'builtinTunerName'
:
setChoice
(
'builtinTunerName'
,
'BatchTuner'
,
'GridSearch'
,
'Random'
),
Optional
(
'gpuNum'
):
setNumberRange
(
'gpuNum'
,
int
,
0
,
99999
),
...
...
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