Skip to content

Commit

Permalink
Merge pull request microsoft#5 from Microsoft/master
Browse files Browse the repository at this point in the history
pull latest code
  • Loading branch information
chicm-ms authored Nov 27, 2018
2 parents 10e998f + 56b4600 commit a0f361c
Show file tree
Hide file tree
Showing 12 changed files with 10 additions and 11 deletions.
3 changes: 2 additions & 1 deletion docs/WebUI.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Click the tab "Overview".

* See the experiment trial profile and search space message.
* Support to download the experiment message.

![](./img/over1.png)
* See good performance trials.
Expand Down Expand Up @@ -41,7 +42,7 @@ Click the tab "Trials Detail" to see the status of the all trials. Specifically:
![](./img/table_openrow.png)

* Kill: you can kill a job that status is running.
* Tensor: you can see a job in the tensorflow graph, it will link to the Tensorboard page.
* Intermediate Result Graph.
* Support to search for a specific trial.

![](./img/intermediate.png)
Binary file modified docs/img/accuracy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/img/hyperPara.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/img/over1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/img/over2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/img/table_openrow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/img/trial_detail4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/img/trial_duration.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions src/sdk/pynni/nni/platform/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import json
import time
import json_tricks
import subprocess

from ..common import init_logger, env_args

Expand Down Expand Up @@ -77,6 +78,7 @@ def send_metric(string):
assert len(data) < 1000000, 'Metric too long'
_metric_file.write(b'ME%06d%b' % (len(data), data))
_metric_file.flush()
subprocess.run(['touch', _metric_file.name], check = True)

def get_sequence_id():
return os.environ['NNI_TRIAL_SEQ_ID']
10 changes: 1 addition & 9 deletions src/webui/src/components/Overview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -128,14 +128,6 @@ class Overview extends React.Component<{}, OverviewState> {
const key = searchSpace[item]._type;
let value = searchSpace[item]._value;
switch (key) {
case 'loguniform':
case 'qloguniform':
const a = Math.pow(Math.E, value[0]);
const b = Math.pow(Math.E, value[1]);
value = [a, b];
searchSpace[item]._value = value;
break;

case 'quniform':
case 'qnormal':
case 'qlognormal':
Expand Down Expand Up @@ -345,7 +337,7 @@ class Overview extends React.Component<{}, OverviewState> {
const { tableData } = this.state;
const sourcePoint = JSON.parse(JSON.stringify(tableData));
sourcePoint.sort((a: TableObj, b: TableObj) => {
if (a.sequenceId && b.sequenceId) {
if (a.sequenceId !== undefined && b.sequenceId !== undefined) {
return a.sequenceId - b.sequenceId;
} else {
return NaN;
Expand Down
3 changes: 2 additions & 1 deletion src/webui/src/static/const.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ export const trialJobStatus = [
'SUCCEEDED',
'FAILED',
'USER_CANCELED',
'SYS_CANCELED'
'SYS_CANCELED',
'EARLY_STOPPED'
];
export const CONTROLTYPE = [
'SEARCH_SPACE',
Expand Down
3 changes: 3 additions & 0 deletions src/webui/src/static/style/tableStatus.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,6 @@
.WAITING{
color: #008B8B;
}
.EARLY_STOPPED{
color: #FFA500;
}

0 comments on commit a0f361c

Please sign in to comment.