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
1ee97350
Unverified
Commit
1ee97350
authored
Feb 25, 2019
by
SparkSnail
Committed by
GitHub
Feb 25, 2019
Browse files
Merge pull request #129 from Microsoft/master
Add different tuner config files for config_test (#760)
parents
754a354b
c94996c7
Changes
22
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
288 additions
and
12 deletions
+288
-12
azure-pipelines.yml
azure-pipelines.yml
+2
-0
examples/trials/mnist-hyperband/mnist.py
examples/trials/mnist-hyperband/mnist.py
+2
-2
examples/trials/mnist/mnist.py
examples/trials/mnist/mnist.py
+2
-2
examples/trials/mnist/mnist_before.py
examples/trials/mnist/mnist_before.py
+2
-2
test/config_test/tuners/mnist-annotation-anneal.test.yml
test/config_test/tuners/mnist-annotation-anneal.test.yml
+24
-0
test/config_test/tuners/mnist-annotation-evolution.test.yml
test/config_test/tuners/mnist-annotation-evolution.test.yml
+24
-0
test/config_test/tuners/mnist-annotation-random.test.yml
test/config_test/tuners/mnist-annotation-random.test.yml
+24
-0
test/config_test/tuners/mnist-annotation-smac.test.yml
test/config_test/tuners/mnist-annotation-smac.test.yml
+24
-0
test/config_test/tuners/mnist-annotation-tpe.test.yml
test/config_test/tuners/mnist-annotation-tpe.test.yml
+24
-0
test/config_test/tuners/mnist-batchtuner.test.yml
test/config_test/tuners/mnist-batchtuner.test.yml
+24
-0
test/config_test/tuners/mnist-curvefitting.test.yml
test/config_test/tuners/mnist-curvefitting.test.yml
+28
-0
test/config_test/tuners/mnist-gridsearch.test.yml
test/config_test/tuners/mnist-gridsearch.test.yml
+23
-0
test/config_test/tuners/mnist-hyperband.test.yml
test/config_test/tuners/mnist-hyperband.test.yml
+28
-0
test/config_test/tuners/mnist-metis.test.yml
test/config_test/tuners/mnist-metis.test.yml
+25
-0
test/config_test/tuners/search_space.json
test/config_test/tuners/search_space.json
+7
-0
test/config_test/tuners/search_space_batchtuner.json
test/config_test/tuners/search_space_batchtuner.json
+12
-0
test/config_test/tuners/search_space_hyperband.json
test/config_test/tuners/search_space_hyperband.json
+7
-0
tools/nni_annotation/examples/mnist_generated.py
tools/nni_annotation/examples/mnist_generated.py
+2
-2
tools/nni_annotation/examples/mnist_with_annotation.py
tools/nni_annotation/examples/mnist_with_annotation.py
+2
-2
tools/nni_annotation/examples/mnist_without_annotation.py
tools/nni_annotation/examples/mnist_without_annotation.py
+2
-2
No files found.
azure-pipelines.yml
View file @
1ee97350
...
...
@@ -18,6 +18,8 @@ jobs:
python3 -m pip install torchvision==0.2.1 --user
python3 -m pip install keras==2.1.6 --user
python3 -m pip install tensorflow-gpu==1.10.0 --user
sudo apt-get install swig -y
nnictl package install --name=SMAC
displayName
:
'
Install
dependencies
for
integration
tests'
-
script
:
|
cd test
...
...
examples/trials/mnist-hyperband/mnist.py
View file @
1ee97350
...
...
@@ -149,8 +149,8 @@ def main(params):
'''
# Import data
mnist
=
input_data
.
read_data_sets
(
params
[
'data_dir'
],
one_hot
=
True
)
print
(
'Mnist download data do
w
n.'
)
logger
.
debug
(
'Mnist download data do
w
n.'
)
print
(
'Mnist download data don
e
.'
)
logger
.
debug
(
'Mnist download data don
e
.'
)
# Create the model
# Build the graph for the deep net
...
...
examples/trials/mnist/mnist.py
View file @
1ee97350
...
...
@@ -150,8 +150,8 @@ def main(params):
'''
# Import data
mnist
=
input_data
.
read_data_sets
(
params
[
'data_dir'
],
one_hot
=
True
)
print
(
'Mnist download data do
w
n.'
)
logger
.
debug
(
'Mnist download data do
w
n.'
)
print
(
'Mnist download data don
e
.'
)
logger
.
debug
(
'Mnist download data don
e
.'
)
# Create the model
# Build the graph for the deep net
...
...
examples/trials/mnist/mnist_before.py
View file @
1ee97350
...
...
@@ -150,8 +150,8 @@ def main(params):
'''
# Import data
mnist
=
input_data
.
read_data_sets
(
params
[
'data_dir'
],
one_hot
=
True
)
print
(
'Mnist download data do
w
n.'
)
logger
.
debug
(
'Mnist download data do
w
n.'
)
print
(
'Mnist download data don
e
.'
)
logger
.
debug
(
'Mnist download data don
e
.'
)
# Create the model
# Build the graph for the deep net
...
...
test/config_test/tuners/mnist-annotation-anneal.test.yml
0 → 100644
View file @
1ee97350
authorName
:
nni
experimentName
:
default_test
maxExecDuration
:
5m
maxTrialNum
:
2
trialConcurrency
:
1
tuner
:
builtinTunerName
:
Anneal
classArgs
:
optimize_mode
:
maximize
assessor
:
builtinAssessorName
:
Medianstop
classArgs
:
optimize_mode
:
maximize
trial
:
codeDir
:
../../../examples/trials/mnist-annotation
command
:
python3 mnist.py --batch_num
100
gpuNum
:
0
useAnnotation
:
true
multiPhase
:
false
multiThread
:
false
trainingServicePlatform
:
local
test/config_test/tuners/mnist-annotation-evolution.test.yml
0 → 100644
View file @
1ee97350
authorName
:
nni
experimentName
:
default_test
maxExecDuration
:
5m
maxTrialNum
:
2
trialConcurrency
:
1
tuner
:
builtinTunerName
:
Evolution
classArgs
:
optimize_mode
:
maximize
assessor
:
builtinAssessorName
:
Medianstop
classArgs
:
optimize_mode
:
maximize
trial
:
codeDir
:
../../../examples/trials/mnist-annotation
command
:
python3 mnist.py --batch_num
100
gpuNum
:
0
useAnnotation
:
true
multiPhase
:
false
multiThread
:
false
trainingServicePlatform
:
local
test/config_test/tuners/mnist-annotation-random.test.yml
0 → 100644
View file @
1ee97350
authorName
:
nni
experimentName
:
default_test
maxExecDuration
:
5m
maxTrialNum
:
2
trialConcurrency
:
1
tuner
:
builtinTunerName
:
Random
classArgs
:
optimize_mode
:
maximize
assessor
:
builtinAssessorName
:
Medianstop
classArgs
:
optimize_mode
:
maximize
trial
:
codeDir
:
../../../examples/trials/mnist-annotation
command
:
python3 mnist.py --batch_num
100
gpuNum
:
0
useAnnotation
:
true
multiPhase
:
false
multiThread
:
false
trainingServicePlatform
:
local
test/config_test/tuners/mnist-annotation-smac.test.yml
0 → 100644
View file @
1ee97350
authorName
:
nni
experimentName
:
default_test
maxExecDuration
:
5m
maxTrialNum
:
2
trialConcurrency
:
1
tuner
:
builtinTunerName
:
SMAC
classArgs
:
optimize_mode
:
maximize
assessor
:
builtinAssessorName
:
Medianstop
classArgs
:
optimize_mode
:
maximize
trial
:
codeDir
:
../../../examples/trials/mnist-annotation
command
:
python3 mnist.py --batch_num
100
gpuNum
:
0
useAnnotation
:
true
multiPhase
:
false
multiThread
:
false
trainingServicePlatform
:
local
test/config_test/tuners/mnist-annotation-tpe.test.yml
0 → 100644
View file @
1ee97350
authorName
:
nni
experimentName
:
default_test
maxExecDuration
:
5m
maxTrialNum
:
2
trialConcurrency
:
1
tuner
:
builtinTunerName
:
TPE
classArgs
:
optimize_mode
:
maximize
assessor
:
builtinAssessorName
:
Medianstop
classArgs
:
optimize_mode
:
maximize
trial
:
codeDir
:
../../../examples/trials/mnist-annotation
command
:
python3 mnist.py --batch_num
100
gpuNum
:
0
useAnnotation
:
true
multiPhase
:
false
multiThread
:
false
trainingServicePlatform
:
local
test/config_test/tuners/mnist-batchtuner.test.yml
0 → 100644
View file @
1ee97350
authorName
:
nni
experimentName
:
default_test
maxExecDuration
:
5m
maxTrialNum
:
2
trialConcurrency
:
1
searchSpacePath
:
search_space_batchtuner.json
tuner
:
builtinTunerName
:
BatchTuner
assessor
:
builtinAssessorName
:
Medianstop
classArgs
:
optimize_mode
:
maximize
trial
:
codeDir
:
../../../examples/trials/mnist-batch-tune-keras
command
:
python3 mnist-keras.py --epochs
1
gpuNum
:
0
useAnnotation
:
false
multiPhase
:
false
multiThread
:
false
trainingServicePlatform
:
local
test/config_test/tuners/mnist-curvefitting.test.yml
0 → 100644
View file @
1ee97350
authorName
:
nni
experimentName
:
default_test
maxExecDuration
:
5m
maxTrialNum
:
2
trialConcurrency
:
1
searchSpacePath
:
search_space.json
tuner
:
builtinTunerName
:
TPE
classArgs
:
optimize_mode
:
maximize
assessor
:
builtinAssessorName
:
Curvefitting
classArgs
:
epoch_num
:
20
optimize_mode
:
maximize
start_step
:
6
threshold
:
0.95
trial
:
codeDir
:
../../../examples/trials/mnist
command
:
python3 mnist.py --batch_num
100
gpuNum
:
0
useAnnotation
:
false
multiPhase
:
false
multiThread
:
false
trainingServicePlatform
:
local
\ No newline at end of file
test/config_test/tuners/mnist-gridsearch.test.yml
0 → 100644
View file @
1ee97350
authorName
:
nni
experimentName
:
default_test
maxExecDuration
:
5m
maxTrialNum
:
2
trialConcurrency
:
1
searchSpacePath
:
search_space.json
tuner
:
builtinTunerName
:
GridSearch
assessor
:
builtinAssessorName
:
Medianstop
classArgs
:
optimize_mode
:
maximize
trial
:
codeDir
:
../../../examples/trials/mnist
command
:
python3 mnist.py --batch_num
100
gpuNum
:
0
useAnnotation
:
false
multiPhase
:
false
multiThread
:
false
trainingServicePlatform
:
local
test/config_test/tuners/mnist-hyperband.test.yml
0 → 100644
View file @
1ee97350
authorName
:
nni
experimentName
:
default_test
maxExecDuration
:
5m
maxTrialNum
:
2
trialConcurrency
:
1
searchSpacePath
:
search_space_hyperband.json
advisor
:
builtinAdvisorName
:
Hyperband
classArgs
:
optimize_mode
:
maximize
R
:
60
eta
:
3
assessor
:
builtinAssessorName
:
Medianstop
classArgs
:
optimize_mode
:
maximize
trial
:
codeDir
:
../../../examples/trials/mnist-hyperband
command
:
python3 mnist.py
gpuNum
:
0
useAnnotation
:
false
multiPhase
:
false
multiThread
:
false
trainingServicePlatform
:
local
test/config_test/tuners/mnist-metis.test.yml
0 → 100644
View file @
1ee97350
authorName
:
nni
experimentName
:
default_test
maxExecDuration
:
5m
maxTrialNum
:
2
trialConcurrency
:
1
searchSpacePath
:
search_space.json
tuner
:
builtinTunerName
:
MetisTuner
classArgs
:
optimize_mode
:
maximize
assessor
:
builtinAssessorName
:
Medianstop
classArgs
:
optimize_mode
:
maximize
trial
:
codeDir
:
../../../examples/trials/mnist
command
:
python3 mnist.py --batch_num
100
gpuNum
:
0
useAnnotation
:
false
multiPhase
:
false
multiThread
:
false
trainingServicePlatform
:
local
test/config_test/tuners/search_space.json
0 → 100644
View file @
1ee97350
{
"dropout_rate"
:{
"_type"
:
"quniform"
,
"_value"
:[
0.5
,
0.9
,
2
]},
"conv_size"
:{
"_type"
:
"choice"
,
"_value"
:[
2
,
3
,
5
,
7
]},
"hidden_size"
:{
"_type"
:
"choice"
,
"_value"
:[
124
,
512
,
1024
]},
"batch_size"
:
{
"_type"
:
"choice"
,
"_value"
:
[
1
,
4
,
8
,
16
,
32
]},
"learning_rate"
:{
"_type"
:
"choice"
,
"_value"
:[
0.0001
,
0.001
,
0.01
,
0.1
]}
}
test/config_test/tuners/search_space_batchtuner.json
0 → 100644
View file @
1ee97350
{
"combine_params"
:
{
"_type"
:
"choice"
,
"_value"
:
[{
"optimizer"
:
"Adam"
,
"learning_rate"
:
0.00001
},
{
"optimizer"
:
"Adam"
,
"learning_rate"
:
0.0001
},
{
"optimizer"
:
"Adam"
,
"learning_rate"
:
0.001
},
{
"optimizer"
:
"SGD"
,
"learning_rate"
:
0.01
},
{
"optimizer"
:
"SGD"
,
"learning_rate"
:
0.005
},
{
"optimizer"
:
"SGD"
,
"learning_rate"
:
0.0002
}]
}
}
\ No newline at end of file
test/config_test/tuners/search_space_hyperband.json
0 → 100644
View file @
1ee97350
{
"dropout_rate"
:{
"_type"
:
"uniform"
,
"_value"
:[
0.5
,
0.9
]},
"conv_size"
:{
"_type"
:
"choice"
,
"_value"
:[
2
,
3
,
5
,
7
]},
"hidden_size"
:{
"_type"
:
"choice"
,
"_value"
:[
124
,
512
,
1024
]},
"batch_size"
:
{
"_type"
:
"choice"
,
"_value"
:[
8
,
16
,
32
,
64
]},
"learning_rate"
:{
"_type"
:
"choice"
,
"_value"
:[
0.0001
,
0.001
,
0.01
,
0.1
]}
}
tools/nni_annotation/examples/mnist_generated.py
View file @
1ee97350
...
...
@@ -129,8 +129,8 @@ def main(params):
Main function, build mnist network, run and send result to NNI.
"""
mnist
=
input_data
.
read_data_sets
(
params
[
'data_dir'
],
one_hot
=
True
)
print
(
'Mnist download data do
w
n.'
)
logger
.
debug
(
'Mnist download data do
w
n.'
)
print
(
'Mnist download data don
e
.'
)
logger
.
debug
(
'Mnist download data don
e
.'
)
mnist_network
=
MnistNetwork
(
channel_1_num
=
params
[
'channel_1_num'
],
channel_2_num
=
params
[
'channel_2_num'
],
conv_size
=
params
[
'conv_size'
],
hidden_size
=
params
[
'hidden_size'
],
pool_size
=
params
[
'pool_size'
],
...
...
tools/nni_annotation/examples/mnist_with_annotation.py
View file @
1ee97350
...
...
@@ -175,8 +175,8 @@ def main(params):
'''
# Import data
mnist
=
input_data
.
read_data_sets
(
params
[
'data_dir'
],
one_hot
=
True
)
print
(
'Mnist download data do
w
n.'
)
logger
.
debug
(
'Mnist download data do
w
n.'
)
print
(
'Mnist download data don
e
.'
)
logger
.
debug
(
'Mnist download data don
e
.'
)
# Create the model
# Build the graph for the deep net
...
...
tools/nni_annotation/examples/mnist_without_annotation.py
View file @
1ee97350
...
...
@@ -179,8 +179,8 @@ def main(params):
'''
# Import data
mnist
=
input_data
.
read_data_sets
(
params
[
'data_dir'
],
one_hot
=
True
)
print
(
'Mnist download data do
w
n.'
)
logger
.
debug
(
'Mnist download data do
w
n.'
)
print
(
'Mnist download data don
e
.'
)
logger
.
debug
(
'Mnist download data don
e
.'
)
# Create the model
# Build the graph for the deep net
...
...
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