Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
nni
Commits
6af4b864
Unverified
Commit
6af4b864
authored
Apr 12, 2019
by
SparkSnail
Committed by
GitHub
Apr 12, 2019
Browse files
Merge pull request #158 from Microsoft/master
merge master
parents
346d49d5
5aca94db
Changes
24
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
29 additions
and
3 deletions
+29
-3
src/sdk/pynni/nni/bohb_advisor/requirements.txt
src/sdk/pynni/nni/bohb_advisor/requirements.txt
+2
-0
src/sdk/pynni/nni/constants.py
src/sdk/pynni/nni/constants.py
+4
-2
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.
src/sdk/pynni/nni/bohb_advisor/requirements.txt
0 → 100644
View file @
6af4b864
ConfigSpace==0.4.7
statsmodels==0.9.0
\ No newline at end of file
src/sdk/pynni/nni/constants.py
View file @
6af4b864
...
...
@@ -60,9 +60,11 @@ ClassArgs = {
}
AdvisorModuleName
=
{
'Hyperband'
:
'nni.hyperband_advisor.hyperband_advisor'
'Hyperband'
:
'nni.hyperband_advisor.hyperband_advisor'
,
'BOHB'
:
'nni.bohb_advisor.bohb_advisor'
}
AdvisorClassName
=
{
'Hyperband'
:
'Hyperband'
'Hyperband'
:
'Hyperband'
,
'BOHB'
:
'BOHB'
}
\ No newline at end of file
tools/nni_cmd/config_schema.py
View file @
6af4b864
...
...
@@ -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 @
6af4b864
...
...
@@ -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