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
4dc9eb93
Unverified
Commit
4dc9eb93
authored
Apr 04, 2020
by
chicm-ms
Committed by
GitHub
Apr 04, 2020
Browse files
Update pr test cases for windows (#2267) (#2268)
parent
a84b32b4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
5 deletions
+25
-5
test/config/naive_trial/naive_trial.py
test/config/naive_trial/naive_trial.py
+14
-0
test/config/pr_tests.yml
test/config/pr_tests.yml
+11
-5
No files found.
test/config/naive_trial/naive_trial.py
0 → 100644
View file @
4dc9eb93
import
time
import
nni
if
__name__
==
'__main__'
:
print
(
'trial start'
)
params
=
nni
.
get_next_parameter
()
print
(
'params:'
,
params
)
epochs
=
2
for
i
in
range
(
epochs
):
nni
.
report_intermediate_result
(
0.1
*
(
i
+
1
))
time
.
sleep
(
1
)
nni
.
report_final_result
(
0.8
)
print
(
'trial done'
)
test/config/pr_tests.yml
View file @
4dc9eb93
...
@@ -70,12 +70,18 @@ testCases:
...
@@ -70,12 +70,18 @@ testCases:
config
:
config
:
maxTrialNum
:
2
maxTrialNum
:
2
trialConcurrency
:
2
trialConcurrency
:
2
trial
:
codeDir
:
../naive_trial
command
:
python3 naive_trial.py
-
name
:
assessor-medianstop
-
name
:
assessor-medianstop
configFile
:
test/config/assessors/medianstop.yml
configFile
:
test/config/assessors/medianstop.yml
config
:
config
:
maxTrialNum
:
2
maxTrialNum
:
2
trialConcurrency
:
2
trialConcurrency
:
2
trial
:
codeDir
:
../naive_trial
command
:
python3 naive_trial.py
#########################################################################
#########################################################################
# nni tuners test
# nni tuners test
...
@@ -89,7 +95,7 @@ testCases:
...
@@ -89,7 +95,7 @@ testCases:
searchSpacePath
:
../naive_trial/search_space.json
searchSpacePath
:
../naive_trial/search_space.json
trial
:
trial
:
codeDir
:
../naive_trial
codeDir
:
../naive_trial
command
:
python3 trial.py
command
:
python3
naive_
trial.py
-
name
:
tuner-evolution
-
name
:
tuner-evolution
configFile
:
test/config/tuners/evolution.yml
configFile
:
test/config/tuners/evolution.yml
...
@@ -100,7 +106,7 @@ testCases:
...
@@ -100,7 +106,7 @@ testCases:
searchSpacePath
:
../naive_trial/search_space.json
searchSpacePath
:
../naive_trial/search_space.json
trial
:
trial
:
codeDir
:
../naive_trial
codeDir
:
../naive_trial
command
:
python3 trial.py
command
:
python3
naive_
trial.py
-
name
:
tuner-random
-
name
:
tuner-random
configFile
:
test/config/tuners/random.yml
configFile
:
test/config/tuners/random.yml
...
@@ -111,7 +117,7 @@ testCases:
...
@@ -111,7 +117,7 @@ testCases:
searchSpacePath
:
../naive_trial/search_space.json
searchSpacePath
:
../naive_trial/search_space.json
trial
:
trial
:
codeDir
:
../naive_trial
codeDir
:
../naive_trial
command
:
python3 trial.py
command
:
python3
naive_
trial.py
-
name
:
tuner-tpe
-
name
:
tuner-tpe
configFile
:
test/config/tuners/tpe.yml
configFile
:
test/config/tuners/tpe.yml
...
@@ -122,7 +128,7 @@ testCases:
...
@@ -122,7 +128,7 @@ testCases:
searchSpacePath
:
../naive_trial/search_space.json
searchSpacePath
:
../naive_trial/search_space.json
trial
:
trial
:
codeDir
:
../naive_trial
codeDir
:
../naive_trial
command
:
python3 trial.py
command
:
python3
naive_
trial.py
-
name
:
tuner-batch
-
name
:
tuner-batch
configFile
:
test/config/tuners/batch.yml
configFile
:
test/config/tuners/batch.yml
...
@@ -144,7 +150,7 @@ testCases:
...
@@ -144,7 +150,7 @@ testCases:
searchSpacePath
:
../naive_trial/search_space.json
searchSpacePath
:
../naive_trial/search_space.json
trial
:
trial
:
codeDir
:
../naive_trial
codeDir
:
../naive_trial
command
:
python3 trial.py
command
:
python3
naive_
trial.py
-
name
:
tuner-grid
-
name
:
tuner-grid
configFile
:
test/config/tuners/gridsearch.yml
configFile
:
test/config/tuners/gridsearch.yml
...
...
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