Skip to content

Commit

Permalink
Merge pull request #22 from microsoft/master
Browse files Browse the repository at this point in the history
pull code
  • Loading branch information
chicm-ms authored Jun 25, 2019
2 parents 1c56fea + eb0df3d commit 256f27a
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
14 changes: 11 additions & 3 deletions src/webui/src/components/trial-detail/Para.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,8 @@ class Para extends React.Component<ParaProps, ParaState> {

const parallelAxis: Array<Dimobj> = [];
// 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]];
switch (searchKey._type) {
case 'uniform':
Expand Down Expand Up @@ -213,6 +214,13 @@ class Para extends React.Component<ParaProps, ParaState> {

}
}
parallelAxis.push({
dim: i,
name: 'default metric',
nameTextStyle: {
fontWeight: 700
}
});
if (lenOfDataSource === 0) {
const optionOfNull = {
parallelAxis,
Expand All @@ -229,8 +237,8 @@ class Para extends React.Component<ParaProps, ParaState> {
const length = value.length;
if (length > 16) {
const temp = value.split('');
for (let i = 16; i < temp.length; i += 17) {
temp[i] += '\n';
for (let m = 16; m < temp.length; m += 17) {
temp[m] += '\n';
}
return temp.join('');
} else {
Expand Down
1 change: 1 addition & 0 deletions src/webui/src/static/interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ interface Dimobj {
axisTick?: object;
axisLabel?: object;
axisLine?: object;
nameTextStyle?: object;
}

interface ParaObj {
Expand Down
4 changes: 3 additions & 1 deletion tools/nni_trial_tool/trial_keeper.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def get_hdfs_client(args):
return _hdfs_client
# backward compatibility
hdfs_host = None
hdfs_output_dir = None

if args.hdfs_host:
hdfs_host = args.hdfs_host
elif args.pai_hdfs_host:
Expand Down Expand Up @@ -83,6 +83,8 @@ def main_loop(args):
# 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)
sys.stdout = sys.stderr = trial_keeper_syslogger
hdfs_output_dir = None

if args.hdfs_output_dir:
hdfs_output_dir = args.hdfs_output_dir
elif args.pai_hdfs_output_dir:
Expand Down

0 comments on commit 256f27a

Please sign in to comment.