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
5aca94db
Commit
5aca94db
authored
Apr 12, 2019
by
Shufan Huang
Committed by
QuanluZhang
Apr 12, 2019
Browse files
Add BOHB Advisor (#910)
add BOHB Advisor
parent
130a2132
Changes
22
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
1 deletion
+23
-1
tools/nni_cmd/config_schema.py
tools/nni_cmd/config_schema.py
+21
-0
tools/nni_cmd/constants.py
tools/nni_cmd/constants.py
+2
-1
No files found.
tools/nni_cmd/config_schema.py
View file @
5aca94db
...
...
@@ -52,6 +52,27 @@ Optional('advisor'): Or({
'className'
:
str
,
Optional
(
'classArgs'
):
dict
,
Optional
(
'gpuNum'
):
And
(
int
,
lambda
x
:
0
<=
x
<=
99999
),
},{
'builtinAdvisorName'
:
Or
(
'BOHB'
),
'classArgs'
:
{
'optimize_mode'
:
Or
(
'maximize'
,
'minimize'
),
Optional
(
'min_budget'
):
And
(
int
,
lambda
x
:
0
<=
x
<=
9999
),
Optional
(
'max_budget'
):
And
(
int
,
lambda
x
:
0
<=
x
<=
9999
),
Optional
(
'eta'
):
And
(
int
,
lambda
x
:
0
<=
x
<=
9999
),
Optional
(
'min_points_in_model'
):
And
(
int
,
lambda
x
:
0
<=
x
<=
9999
),
Optional
(
'top_n_percent'
):
And
(
int
,
lambda
x
:
1
<=
x
<=
99
),
Optional
(
'num_samples'
):
And
(
int
,
lambda
x
:
1
<=
x
<=
9999
),
Optional
(
'random_fraction'
):
And
(
float
,
lambda
x
:
0.0
<=
x
<=
9999.0
),
Optional
(
'bandwidth_factor'
):
And
(
float
,
lambda
x
:
0.0
<=
x
<=
9999.0
),
Optional
(
'min_bandwidth'
):
And
(
float
,
lambda
x
:
0.0
<=
x
<=
9999.0
)
},
Optional
(
'gpuNum'
):
And
(
int
,
lambda
x
:
0
<=
x
<=
99999
),
},{
'codeDir'
:
os
.
path
.
exists
,
'classFileName'
:
str
,
'className'
:
str
,
Optional
(
'classArgs'
):
dict
,
Optional
(
'gpuNum'
):
And
(
int
,
lambda
x
:
0
<=
x
<=
99999
),
}),
Optional
(
'tuner'
):
Or
({
'builtinTunerName'
:
Or
(
'TPE'
,
'Anneal'
,
'SMAC'
,
'Evolution'
),
...
...
tools/nni_cmd/constants.py
View file @
5aca94db
...
...
@@ -76,7 +76,8 @@ TRIAL_MONITOR_CONTENT = '%-15s %-25s %-25s %-15s'
TRIAL_MONITOR_TAIL
=
'-------------------------------------------------------------------------------------
\n\n\n
'
PACKAGE_REQUIREMENTS
=
{
'SMAC'
:
'smac_tuner'
'SMAC'
:
'smac_tuner'
,
'BOHB'
:
'bohb_advisor'
}
COLOR_RED_FORMAT
=
'
\033
[1;31;31m%s
\033
[0m'
...
...
Prev
1
2
Next
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