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
df3952a2
"...language/test_tilelang_language_intrinsics_codegen.py" did not exist on "34632a1b012d593fd27516fb306eb780ea4bdf80"
Commit
df3952a2
authored
Jun 23, 2019
by
suiguoxin
Browse files
fix val err
parent
dbac6edb
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
5 deletions
+7
-5
examples/trials/auto-gbdt/config.yml
examples/trials/auto-gbdt/config.yml
+4
-3
examples/trials/mnist/config.yml
examples/trials/mnist/config.yml
+2
-1
src/sdk/pynni/nni/gp_tuner/util.py
src/sdk/pynni/nni/gp_tuner/util.py
+1
-1
No files found.
examples/trials/auto-gbdt/config.yml
View file @
df3952a2
authorName
:
default
experimentName
:
example_auto-gbdt
trialConcurrency
:
1
maxExecDuration
:
10
h
maxTrialNum
:
10
maxExecDuration
:
48
h
maxTrialNum
:
10
00
#choice: local, remote, pai
trainingServicePlatform
:
local
searchSpacePath
:
search_space.json
...
...
@@ -11,10 +11,11 @@ useAnnotation: false
tuner
:
#choice: TPE, Random, Anneal, Evolution, BatchTuner, MetisTuner
#SMAC (SMAC should be installed through nnictl)
builtinTunerName
:
TPE
builtinTunerName
:
GPTuner
classArgs
:
#choice: maximize, minimize
optimize_mode
:
minimize
cold_start_num
:
1
trial
:
command
:
python3 main.py
codeDir
:
.
...
...
examples/trials/mnist/config.yml
View file @
df3952a2
...
...
@@ -11,10 +11,11 @@ useAnnotation: false
tuner
:
#choice: TPE, Random, Anneal, Evolution, BatchTuner, MetisTuner, GPTuner
#SMAC (SMAC should be installed through nnictl)
builtinTunerName
:
TPE
builtinTunerName
:
GPTuner
classArgs
:
#choice: maximize, minimize
optimize_mode
:
maximize
cold_start_num
:
1
trial
:
command
:
python3 mnist.py
codeDir
:
.
...
...
src/sdk/pynni/nni/gp_tuner/util.py
View file @
df3952a2
...
...
@@ -40,7 +40,7 @@ def _match_val_type(vals, bounds):
vals_new
.
append
(
min
(
bounds
[
i
][
'_value'
],
key
=
lambda
x
:
abs
(
x
-
vals
[
i
])))
elif
_type
in
[
'quniform'
,
'randint'
]:
vals_new
.
append
(
np
.
around
(
bounds
[
i
][
'_value'
]))
vals_new
.
append
(
np
.
around
(
vals
[
i
]))
else
:
vals_new
.
append
(
vals
[
i
])
...
...
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