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
ccb2211e
"vscode:/vscode.git/clone" did not exist on "0d1f7265c4333a9fb46537b6332e2316609adeb7"
Unverified
Commit
ccb2211e
authored
May 21, 2019
by
chicm-ms
Committed by
GitHub
May 21, 2019
Browse files
Merge pull request #17 from microsoft/master
pull code
parents
58fd0c84
31dc58e9
Changes
104
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
33 additions
and
4 deletions
+33
-4
src/webui/src/components/trial-detail/Para.tsx
src/webui/src/components/trial-detail/Para.tsx
+4
-1
test/config_test/examples/mnist-cascading-search-space.test.yml
...onfig_test/examples/mnist-cascading-search-space.test.yml
+24
-0
tools/README.md
tools/README.md
+1
-1
tools/nni_annotation/search_space_generator.py
tools/nni_annotation/search_space_generator.py
+4
-2
No files found.
src/webui/src/components/trial-detail/Para.tsx
View file @
ccb2211e
...
...
@@ -182,7 +182,8 @@ class Para extends React.Component<ParaProps, ParaState> {
// need to cut down the data
if
(
percent
!==
0
)
{
const
linesNum
=
paraData
.
data
.
length
;
const
len
=
Math
.
floor
(
linesNum
*
percent
);
// Math.ceil rather than Math.floor to avoid lost lines
const
len
=
Math
.
ceil
(
linesNum
*
percent
);
paraData
.
data
.
length
=
len
;
}
// need to swap the yAxis
...
...
@@ -236,6 +237,8 @@ class Para extends React.Component<ParaProps, ParaState> {
visualMapObj
=
{
type
:
'
continuous
'
,
precision
:
3
,
min
:
0
,
max
:
max
,
color
:
[
'
#CA0000
'
,
'
#FFC400
'
,
'
#90EE90
'
]
};
}
else
{
...
...
test/config_test/examples/mnist-cascading-search-space.test.yml
0 → 100644
View file @
ccb2211e
authorName
:
nni
experimentName
:
default_test
maxExecDuration
:
5m
maxTrialNum
:
4
trialConcurrency
:
2
searchSpacePath
:
../../../examples/trials/mnist-cascading-search-space/search_space.json
tuner
:
#choice: TPE, Random, Anneal, Evolution
builtinTunerName
:
TPE
assessor
:
builtinAssessorName
:
Medianstop
classArgs
:
optimize_mode
:
maximize
trial
:
codeDir
:
../../../examples/trials/mnist-cascading-search-space
command
:
python3 mnist.py --batch_num
100
gpuNum
:
0
useAnnotation
:
false
multiPhase
:
false
multiThread
:
false
trainingServicePlatform
:
local
tools/README.md
View file @
ccb2211e
...
...
@@ -54,4 +54,4 @@ python >= 3.5
please reference to the [NNI CTL document].
[
NNI CTL document
]:
../docs/en_US/N
NICTLDOC
.md
[
NNI CTL document
]:
../docs/en_US/N
nictl
.md
tools/nni_annotation/search_space_generator.py
View file @
ccb2211e
...
...
@@ -21,6 +21,7 @@
import
ast
import
astor
import
numbers
# pylint: disable=unidiomatic-typecheck
...
...
@@ -87,8 +88,9 @@ class SearchSpaceGenerator(ast.NodeTransformer):
args
=
[
key
.
n
if
type
(
key
)
is
ast
.
Num
else
key
.
s
for
key
in
node
.
args
[
0
].
keys
]
else
:
# arguments of other functions must be literal number
assert
all
(
type
(
arg
)
is
ast
.
Num
for
arg
in
node
.
args
),
'Smart parameter
\'
s arguments must be number literals'
args
=
[
arg
.
n
for
arg
in
node
.
args
]
assert
all
(
isinstance
(
ast
.
literal_eval
(
astor
.
to_source
(
arg
)),
numbers
.
Real
)
for
arg
in
node
.
args
),
\
'Smart parameter
\'
s arguments must be number literals'
args
=
[
ast
.
literal_eval
(
astor
.
to_source
(
arg
))
for
arg
in
node
.
args
]
key
=
self
.
module_name
+
'/'
+
name
+
'/'
+
func
# store key in ast.Call
...
...
Prev
1
2
3
4
5
6
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