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

Remove final val in the intermediate result graph and fix layout style bug(table | search space | config) on desktop #2111

Merged
merged 5 commits into from
Mar 4, 2020
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/webui/src/components/Overview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class Overview extends React.Component<OverviewProps, OverviewState> {

<Stack horizontal className="overMessage">
{/* status block */}
<Stack.Item styles={{ root: { maxWidth: 440 } }} className="prograph overviewBoder cc">
<Stack.Item grow className="prograph overviewBoder cc">
<Title1 text="Status" icon="5.png" />
<Progressed
bestAccuracy={bestAccuracy}
Expand All @@ -84,13 +84,13 @@ class Overview extends React.Component<OverviewProps, OverviewState> {
/>
</Stack.Item>
{/* experiment parameters search space tuner assessor... */}
<Stack.Item styles={{root: {width: 400}}} className="overviewBoder">
<Stack.Item grow styles={{root: {width: 450}}} className="overviewBoder">
<Title1 text="Search space" icon="10.png" />
<Stack className="experiment">
<SearchSpace searchSpace={searchSpace} />
</Stack>
</Stack.Item>
<Stack.Item styles={{root: {width: 400}}}>
<Stack.Item grow styles={{root: {width: 450}}}>
<Title1 text="Config" icon="4.png" />
<Stack className="experiment">
{/* the scroll bar all the trial profile in the searchSpace div*/}
Expand Down
12 changes: 7 additions & 5 deletions src/webui/src/components/trial-detail/TableList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -248,11 +248,13 @@ class TableList extends React.Component<TableListProps, TableListState> {
}
// intermediateArr just store default val
Object.keys(res.data).map(item => {
const temp = parseMetrics(res.data[item].data);
if (typeof temp === 'object') {
intermediateArr.push(temp[intermediateKey]);
} else {
intermediateArr.push(temp);
if(res.data[item].type === 'PERIODICAL'){
const temp = parseMetrics(res.data[item].data);
if (typeof temp === 'object') {
intermediateArr.push(temp.default);
} else {
intermediateArr.push(temp);
}
}
});
const intermediate = intermediateGraphOption(intermediateArr, id);
Expand Down