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
256f27af
Unverified
Commit
256f27af
authored
Jun 25, 2019
by
chicm-ms
Committed by
GitHub
Jun 25, 2019
Browse files
Merge pull request #22 from microsoft/master
pull code
parents
1c56fea8
eb0df3dc
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
4 deletions
+15
-4
src/webui/src/components/trial-detail/Para.tsx
src/webui/src/components/trial-detail/Para.tsx
+11
-3
src/webui/src/static/interface.ts
src/webui/src/static/interface.ts
+1
-0
tools/nni_trial_tool/trial_keeper.py
tools/nni_trial_tool/trial_keeper.py
+3
-1
No files found.
src/webui/src/components/trial-detail/Para.tsx
View file @
256f27af
...
@@ -145,7 +145,8 @@ class Para extends React.Component<ParaProps, ParaState> {
...
@@ -145,7 +145,8 @@ class Para extends React.Component<ParaProps, ParaState> {
const
parallelAxis
:
Array
<
Dimobj
>
=
[];
const
parallelAxis
:
Array
<
Dimobj
>
=
[];
// search space range and specific value [only number]
// search space range and specific value [only number]
for
(
let
i
=
0
;
i
<
dimName
.
length
;
i
++
)
{
let
i
=
0
;
for
(
i
;
i
<
dimName
.
length
;
i
++
)
{
const
searchKey
=
searchRange
[
dimName
[
i
]];
const
searchKey
=
searchRange
[
dimName
[
i
]];
switch
(
searchKey
.
_type
)
{
switch
(
searchKey
.
_type
)
{
case
'
uniform
'
:
case
'
uniform
'
:
...
@@ -213,6 +214,13 @@ class Para extends React.Component<ParaProps, ParaState> {
...
@@ -213,6 +214,13 @@ class Para extends React.Component<ParaProps, ParaState> {
}
}
}
}
parallelAxis
.
push
({
dim
:
i
,
name
:
'
default metric
'
,
nameTextStyle
:
{
fontWeight
:
700
}
});
if
(
lenOfDataSource
===
0
)
{
if
(
lenOfDataSource
===
0
)
{
const
optionOfNull
=
{
const
optionOfNull
=
{
parallelAxis
,
parallelAxis
,
...
@@ -229,8 +237,8 @@ class Para extends React.Component<ParaProps, ParaState> {
...
@@ -229,8 +237,8 @@ class Para extends React.Component<ParaProps, ParaState> {
const
length
=
value
.
length
;
const
length
=
value
.
length
;
if
(
length
>
16
)
{
if
(
length
>
16
)
{
const
temp
=
value
.
split
(
''
);
const
temp
=
value
.
split
(
''
);
for
(
let
i
=
16
;
i
<
temp
.
length
;
i
+=
17
)
{
for
(
let
m
=
16
;
m
<
temp
.
length
;
m
+=
17
)
{
temp
[
i
]
+=
'
\n
'
;
temp
[
m
]
+=
'
\n
'
;
}
}
return
temp
.
join
(
''
);
return
temp
.
join
(
''
);
}
else
{
}
else
{
...
...
src/webui/src/static/interface.ts
View file @
256f27af
...
@@ -97,6 +97,7 @@ interface Dimobj {
...
@@ -97,6 +97,7 @@ interface Dimobj {
axisTick
?:
object
;
axisTick
?:
object
;
axisLabel
?:
object
;
axisLabel
?:
object
;
axisLine
?:
object
;
axisLine
?:
object
;
nameTextStyle
?:
object
;
}
}
interface
ParaObj
{
interface
ParaObj
{
...
...
tools/nni_trial_tool/trial_keeper.py
View file @
256f27af
...
@@ -51,7 +51,7 @@ def get_hdfs_client(args):
...
@@ -51,7 +51,7 @@ def get_hdfs_client(args):
return
_hdfs_client
return
_hdfs_client
# backward compatibility
# backward compatibility
hdfs_host
=
None
hdfs_host
=
None
hdfs_output_dir
=
None
if
args
.
hdfs_host
:
if
args
.
hdfs_host
:
hdfs_host
=
args
.
hdfs_host
hdfs_host
=
args
.
hdfs_host
elif
args
.
pai_hdfs_host
:
elif
args
.
pai_hdfs_host
:
...
@@ -83,6 +83,8 @@ def main_loop(args):
...
@@ -83,6 +83,8 @@ def main_loop(args):
# redirect trial keeper's stdout and stderr to syslog
# redirect trial keeper's stdout and stderr to syslog
trial_syslogger_stdout
=
RemoteLogger
(
args
.
nnimanager_ip
,
args
.
nnimanager_port
,
'trial'
,
StdOutputType
.
Stdout
,
args
.
log_collection
)
trial_syslogger_stdout
=
RemoteLogger
(
args
.
nnimanager_ip
,
args
.
nnimanager_port
,
'trial'
,
StdOutputType
.
Stdout
,
args
.
log_collection
)
sys
.
stdout
=
sys
.
stderr
=
trial_keeper_syslogger
sys
.
stdout
=
sys
.
stderr
=
trial_keeper_syslogger
hdfs_output_dir
=
None
if
args
.
hdfs_output_dir
:
if
args
.
hdfs_output_dir
:
hdfs_output_dir
=
args
.
hdfs_output_dir
hdfs_output_dir
=
args
.
hdfs_output_dir
elif
args
.
pai_hdfs_output_dir
:
elif
args
.
pai_hdfs_output_dir
:
...
...
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