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
df6145a2
Commit
df6145a2
authored
Dec 16, 2020
by
Yuge Zhang
Browse files
Merge branch 'master' of
https://github.com/microsoft/nni
into dev-retiarii
parents
0f0c6288
f8424a9f
Changes
205
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
5 additions
and
65 deletions
+5
-65
nni/algorithms/hpo/batch_tuner/__init__.py
nni/algorithms/hpo/batch_tuner/__init__.py
+0
-0
nni/algorithms/hpo/bohb_advisor/__init__.py
nni/algorithms/hpo/bohb_advisor/__init__.py
+1
-0
nni/algorithms/hpo/bohb_advisor/requirements.txt
nni/algorithms/hpo/bohb_advisor/requirements.txt
+0
-2
nni/algorithms/hpo/curvefitting_assessor/__init__.py
nni/algorithms/hpo/curvefitting_assessor/__init__.py
+1
-1
nni/algorithms/hpo/evolution_tuner.py
nni/algorithms/hpo/evolution_tuner.py
+0
-0
nni/algorithms/hpo/evolution_tuner/__init__.py
nni/algorithms/hpo/evolution_tuner/__init__.py
+0
-0
nni/algorithms/hpo/gp_tuner/__init__.py
nni/algorithms/hpo/gp_tuner/__init__.py
+1
-0
nni/algorithms/hpo/gridsearch_tuner.py
nni/algorithms/hpo/gridsearch_tuner.py
+0
-0
nni/algorithms/hpo/gridsearch_tuner/__init__.py
nni/algorithms/hpo/gridsearch_tuner/__init__.py
+0
-4
nni/algorithms/hpo/hyperband_advisor.py
nni/algorithms/hpo/hyperband_advisor.py
+0
-0
nni/algorithms/hpo/hyperband_advisor/__init__.py
nni/algorithms/hpo/hyperband_advisor/__init__.py
+0
-0
nni/algorithms/hpo/hyperband_advisor/requirements.txt
nni/algorithms/hpo/hyperband_advisor/requirements.txt
+0
-0
nni/algorithms/hpo/hyperopt_tuner.py
nni/algorithms/hpo/hyperopt_tuner.py
+0
-0
nni/algorithms/hpo/hyperopt_tuner/__init__.py
nni/algorithms/hpo/hyperopt_tuner/__init__.py
+0
-0
nni/algorithms/hpo/medianstop_assessor.py
nni/algorithms/hpo/medianstop_assessor.py
+0
-0
nni/algorithms/hpo/medianstop_assessor/__init__.py
nni/algorithms/hpo/medianstop_assessor/__init__.py
+0
-4
nni/algorithms/hpo/medianstop_assessor/test.py
nni/algorithms/hpo/medianstop_assessor/test.py
+0
-54
nni/algorithms/hpo/metis_tuner/__init__.py
nni/algorithms/hpo/metis_tuner/__init__.py
+1
-0
nni/algorithms/hpo/networkmorphism_tuner/__init__.py
nni/algorithms/hpo/networkmorphism_tuner/__init__.py
+1
-0
nni/algorithms/hpo/pbt_tuner.py
nni/algorithms/hpo/pbt_tuner.py
+0
-0
No files found.
nni/algorithms/hpo/batch_tuner/__init__.py
deleted
100644 → 0
View file @
0f0c6288
nni/algorithms/hpo/bohb_advisor/__init__.py
View file @
df6145a2
from
.bohb_advisor
import
BOHB
,
BOHBClassArgsValidator
nni/algorithms/hpo/bohb_advisor/requirements.txt
deleted
100644 → 0
View file @
0f0c6288
ConfigSpace==0.4.7
statsmodels==0.10.0
\ No newline at end of file
nni/algorithms/hpo/curvefitting_assessor/__init__.py
View file @
df6145a2
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
from
.curvefitting_assessor
import
CurvefittingAssessor
from
.curvefitting_assessor
import
CurvefittingAssessor
,
CurvefittingClassArgsValidator
nni/algorithms/hpo/evolution_tuner
/evolution_tuner
.py
→
nni/algorithms/hpo/evolution_tuner.py
View file @
df6145a2
File moved
nni/algorithms/hpo/evolution_tuner/__init__.py
deleted
100644 → 0
View file @
0f0c6288
nni/algorithms/hpo/gp_tuner/__init__.py
View file @
df6145a2
from
.gp_tuner
import
GPTuner
,
GPClassArgsValidator
nni/algorithms/hpo/gridsearch_tuner
/gridsearch_tuner
.py
→
nni/algorithms/hpo/gridsearch_tuner.py
View file @
df6145a2
File moved
nni/algorithms/hpo/gridsearch_tuner/__init__.py
deleted
100644 → 0
View file @
0f0c6288
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
from
.gridsearch_tuner
import
GridSearchTuner
nni/algorithms/hpo/hyperband_advisor
/hyperband_advisor
.py
→
nni/algorithms/hpo/hyperband_advisor.py
View file @
df6145a2
File moved
nni/algorithms/hpo/hyperband_advisor/__init__.py
deleted
100644 → 0
View file @
0f0c6288
nni/algorithms/hpo/hyperband_advisor/requirements.txt
deleted
100644 → 0
View file @
0f0c6288
nni/algorithms/hpo/hyperopt_tuner
/hyperopt_tuner
.py
→
nni/algorithms/hpo/hyperopt_tuner.py
View file @
df6145a2
File moved
nni/algorithms/hpo/hyperopt_tuner/__init__.py
deleted
100644 → 0
View file @
0f0c6288
nni/algorithms/hpo/medianstop_assessor
/medianstop_assessor
.py
→
nni/algorithms/hpo/medianstop_assessor.py
View file @
df6145a2
File moved
nni/algorithms/hpo/medianstop_assessor/__init__.py
deleted
100644 → 0
View file @
0f0c6288
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
from
.medianstop_assessor
import
MedianstopAssessor
nni/algorithms/hpo/medianstop_assessor/test.py
deleted
100644 → 0
View file @
0f0c6288
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
import
argparse
import
logging
import
random
from
.medianstop_assessor
import
MedianstopAssessor
from
nni.assessor
import
AssessResult
logger
=
logging
.
getLogger
(
'nni.contrib.medianstop_assessor'
)
logger
.
debug
(
'START'
)
def
test
():
'''
tests.
'''
parser
=
argparse
.
ArgumentParser
(
description
=
'parse command line parameters.'
)
parser
.
add_argument
(
'--start_from'
,
type
=
int
,
default
=
10
,
dest
=
'start_step'
,
help
=
'Assessing each trial from the step start_step.'
)
parser
.
add_argument
(
'--optimize_mode'
,
type
=
str
,
default
=
'maximize'
,
help
=
'Select optimize mode for Tuner: minimize or maximize.'
)
FLAGS
,
_
=
parser
.
parse_known_args
()
lcs
=
[[
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
],
[
2
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
2
],
[
3
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
3
],
[
4
,
4
,
4
,
4
,
4
,
4
,
4
,
4
,
4
,
4
]]
#lcs = [[1,1,1,1,1,1,1,1,1,1],
# [1,1,1,1,1,1,1,1,1,1],
# [1,1,1,1,1,1,1,1,1,1]]
assessor
=
MedianstopAssessor
(
FLAGS
.
optimize_mode
,
FLAGS
.
start_step
)
for
i
in
range
(
len
(
lcs
)):
#lc = []
to_complete
=
True
for
k
in
range
(
len
(
lcs
[
0
])):
#d = random.randint(i*100+0, i*100+100)
#lc.append(d)
ret
=
assessor
.
assess_trial
(
i
,
lcs
[
i
][:
k
+
1
])
print
(
'result: %d'
,
ret
)
if
ret
==
AssessResult
.
Bad
:
assessor
.
trial_end
(
i
,
False
)
to_complete
=
False
break
if
to_complete
:
assessor
.
trial_end
(
i
,
True
)
try
:
test
()
except
Exception
as
exception
:
logger
.
exception
(
exception
)
raise
nni/algorithms/hpo/metis_tuner/__init__.py
View file @
df6145a2
from
.metis_tuner
import
MetisTuner
,
MetisClassArgsValidator
nni/algorithms/hpo/networkmorphism_tuner/__init__.py
View file @
df6145a2
from
.networkmorphism_tuner
import
NetworkMorphismTuner
,
NetworkMorphismClassArgsValidator
nni/algorithms/hpo/pbt_tuner
/pbt_tuner
.py
→
nni/algorithms/hpo/pbt_tuner.py
100755 → 100644
View file @
df6145a2
File moved
Prev
1
…
4
5
6
7
8
9
10
11
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