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
12a5e3de
Unverified
Commit
12a5e3de
authored
Dec 15, 2020
by
Yuge Zhang
Committed by
GitHub
Dec 15, 2020
Browse files
Refactor HPO tuner code hierarchy (#3187)
Co-authored-by:
liuzhe
<
liuzhe.cs@pku.edu.cn
>
parent
872554f1
Changes
42
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
test/ut/sdk/test_hyperopt_tuner.py
test/ut/sdk/test_hyperopt_tuner.py
+1
-1
test/ut/sdk/test_networkmorphism_tuner.py
test/ut/sdk/test_networkmorphism_tuner.py
+1
-1
No files found.
test/ut/sdk/test_hyperopt_tuner.py
View file @
12a5e3de
...
@@ -9,7 +9,7 @@ from unittest import TestCase, main
...
@@ -9,7 +9,7 @@ from unittest import TestCase, main
import
hyperopt
as
hp
import
hyperopt
as
hp
from
nni.algorithms.hpo.hyperopt_tuner
.hyperopt_tuner
import
json2space
,
json2parameter
,
json2vals
,
HyperoptTuner
from
nni.algorithms.hpo.hyperopt_tuner
import
json2space
,
json2parameter
,
json2vals
,
HyperoptTuner
class
HyperoptTunerTestCase
(
TestCase
):
class
HyperoptTunerTestCase
(
TestCase
):
...
...
test/ut/sdk/test_networkmorphism_tuner.py
View file @
12a5e3de
...
@@ -6,6 +6,7 @@ from unittest import TestCase, main
...
@@ -6,6 +6,7 @@ from unittest import TestCase, main
from
copy
import
deepcopy
from
copy
import
deepcopy
import
torch
import
torch
from
nni.algorithms.hpo.networkmorphism_tuner
import
NetworkMorphismTuner
from
nni.algorithms.hpo.networkmorphism_tuner.graph
import
graph_to_json
,
json_to_graph
from
nni.algorithms.hpo.networkmorphism_tuner.graph
import
graph_to_json
,
json_to_graph
from
nni.algorithms.hpo.networkmorphism_tuner.graph_transformer
import
(
from
nni.algorithms.hpo.networkmorphism_tuner.graph_transformer
import
(
to_deeper_graph
,
to_deeper_graph
,
...
@@ -13,7 +14,6 @@ from nni.algorithms.hpo.networkmorphism_tuner.graph_transformer import (
...
@@ -13,7 +14,6 @@ from nni.algorithms.hpo.networkmorphism_tuner.graph_transformer import (
to_wider_graph
,
to_wider_graph
,
)
)
from
nni.algorithms.hpo.networkmorphism_tuner.layers
import
layer_description_extractor
from
nni.algorithms.hpo.networkmorphism_tuner.layers
import
layer_description_extractor
from
nni.algorithms.hpo.networkmorphism_tuner.networkmorphism_tuner
import
NetworkMorphismTuner
from
nni.algorithms.hpo.networkmorphism_tuner.nn
import
CnnGenerator
from
nni.algorithms.hpo.networkmorphism_tuner.nn
import
CnnGenerator
...
...
Prev
1
2
3
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