-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Add WebUI mock server and improve hyper-parameter parallel coordinates chart #2691
Conversation
@@ -48,7 +48,8 @@ Nothing to do, the code is already linked to package folders. | |||
#### TypeScript | |||
|
|||
* If `src/nni_manager` is changed, run `yarn watch` under this folder. It will watch and build code continually. The `nnictl` need to be restarted to reload NNI manager. | |||
* If `src/webui` or `src/nasui` are changed, run `yarn start` under the corresponding folder. The web UI will refresh automatically if code is changed. | |||
* If `src/webui` is changed, run `yarn dev`, which will run a mock API server and a webpack dev server simultaneously. Use `EXPERIMENT` environment variable (e.g., `mnist-tfv1-running`) to change mock data. Built-in mock experiments are listed in `src/webui/mock`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
better to provide the entire command such as EXPERIMENT=mnist-tfv1-running yarn dev
@@ -0,0 +1,6 @@ | |||
.parcoords { | |||
text.label, text { | |||
font-family: "Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
twice "Segoe UI"
if (this.acc === undefined) { | ||
return ret; | ||
} | ||
const acc = typeof this.acc === 'number' ? { default: this.acc } : this.acc; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
accDictionary
in source is === your acc
if (trial.acc === undefined) | ||
continue; | ||
// TODO: handle more than number and object | ||
const acc = typeof trial.acc === 'number' ? { default: trial.acc } : trial.acc; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can use this field accDictionary
in data source
|
||
export class MetricSpace implements MultipleAxes { | ||
axes = new Map<string, SingleAxis>(); | ||
name = ''; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also name question
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed to baseName
nested = false; | ||
|
||
constructor(name: string, fullName: string, type: string, value: any) { | ||
this.name = name; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think name is a sensitive name.
if (searchSpaceSpec === undefined) | ||
return; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{}
const key = item[0], spec = item[1] as any; | ||
if (key === '_name') { | ||
return; | ||
} else if (spec._type === 'choice' || spec._type === 'layer_choice' || spec._type === 'input_choice') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
['x', 'xx', 'xx'].includes(spec._type)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good suggestion!
this.max = value[1]; | ||
} else if (type.indexOf('normal') !== -1) { | ||
const [mu, sigma] = [value[0], value[1]]; | ||
this.min = mu - 4 * sigma; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why x 4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In normal distribution, [mu - 4sigma, mu + 4sigma] is a very safe domain of the values.
fullName: string; | ||
|
||
constructor(name: string, fullName: string, searchSpaceSpec: any) { | ||
this.name = name; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also name question
No description provided.