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
5629410a
Commit
5629410a
authored
Sep 10, 2018
by
xuehui1991
Committed by
xuehui
Sep 10, 2018
Browse files
fix tab problem
parent
8507b946
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/sdk/pynni/nni/hyperopt_tuner/hyperopt_tuner.py
src/sdk/pynni/nni/hyperopt_tuner/hyperopt_tuner.py
+3
-3
No files found.
src/sdk/pynni/nni/hyperopt_tuner/hyperopt_tuner.py
View file @
5629410a
...
@@ -51,7 +51,7 @@ INDEX = '_index'
...
@@ -51,7 +51,7 @@ INDEX = '_index'
def
json2space
(
in_x
,
name
=
ROOT
):
def
json2space
(
in_x
,
name
=
ROOT
):
'''
'''
Change json to search space in hyperopt.
Change json to search space in hyperopt.
'''
'''
out_y
=
copy
.
deepcopy
(
in_x
)
out_y
=
copy
.
deepcopy
(
in_x
)
if
isinstance
(
in_x
,
dict
):
if
isinstance
(
in_x
,
dict
):
if
TYPE
in
in_x
.
keys
():
if
TYPE
in
in_x
.
keys
():
...
@@ -78,7 +78,7 @@ def json2space(in_x, name=ROOT):
...
@@ -78,7 +78,7 @@ def json2space(in_x, name=ROOT):
def
json2paramater
(
in_x
,
paramater
,
name
=
ROOT
):
def
json2paramater
(
in_x
,
paramater
,
name
=
ROOT
):
'''
'''
Change json to parameters.
Change json to parameters.
'''
'''
out_y
=
copy
.
deepcopy
(
in_x
)
out_y
=
copy
.
deepcopy
(
in_x
)
if
isinstance
(
in_x
,
dict
):
if
isinstance
(
in_x
,
dict
):
if
TYPE
in
in_x
.
keys
():
if
TYPE
in
in_x
.
keys
():
...
@@ -181,7 +181,7 @@ class HyperoptTuner(Tuner):
...
@@ -181,7 +181,7 @@ class HyperoptTuner(Tuner):
def
generate_parameters
(
self
,
parameter_id
):
def
generate_parameters
(
self
,
parameter_id
):
'''
'''
Returns a set of trial (hyper-)parameters, as a serializable object.
Returns a set of trial (hyper-)parameters, as a serializable object.
parameter_id : int
parameter_id : int
'''
'''
rval
=
self
.
rval
rval
=
self
.
rval
...
...
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