Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

Support nested experiment more friendly #2554

Merged
merged 5 commits into from
Jun 22, 2020
Merged

Support nested experiment more friendly #2554

merged 5 commits into from
Jun 22, 2020

Conversation

Lijiaoa
Copy link
Contributor

@Lijiaoa Lijiaoa commented Jun 15, 2020

fix issue #2513

now only support choice type

demo: http://13.77.78.63:9090/detail

@Lijiaoa
Copy link
Contributor Author

Lijiaoa commented Jun 15, 2020

  • layer0 yAxis had have Empty choice, delete null;
  • yAxis pooling_size had renamed Avg_pool_pooling_size

@QuanluZhang QuanluZhang requested a review from liuzhe-lz June 17, 2020 10:09
@@ -2,7 +2,7 @@ import * as React from 'react';
import ReactEcharts from 'echarts-for-react';
import { filterByStatus } from '../../static/function';
import { EXPERIMENT } from '../../static/datamodel';
import { Stack, PrimaryButton, Dropdown, IDropdownOption, } from 'office-ui-fabric-react'; // eslint-disable-line no-unused-vars
import { Stack, PrimaryButton, Dropdown, IDropdownOption } from 'office-ui-fabric-react'; // eslint-disable-line no-unused-vars
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is the eslint-disable needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will delete eslint note now.

let paraYdata: number[][] = [];
const { isNested } = this.state;
if (isNested === false) {
Object.keys(eachTrialParams).map(item => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think for ... of loop should be prefered if the return value is not used.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed. foreach(item => ... is also better

@chicm-ms chicm-ms removed the request for review from QuanluZhang June 19, 2020 09:08
Object.keys(eachTrialParams).map(item => {
const temp: number[] = [];
for (let i = 0; i < dimName.length; i++) {
// if ('type' in parallelAxis[i]) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove unused comments here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok,

@liuzhe-lz liuzhe-lz merged commit 0101f88 into microsoft:master Jun 22, 2020
@chicm-ms chicm-ms mentioned this pull request Jul 1, 2020
24 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants