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

Show default metric in hyper-parameter #1200

Merged
merged 2 commits into from
Jun 25, 2019
Merged
Changes from 1 commit
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
11 changes: 8 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,10 @@ class Para extends React.Component<ParaProps, ParaState> {

}
}
parallelAxis.push({
dim: i,
name: 'default metric'
});
if (lenOfDataSource === 0) {
const optionOfNull = {
parallelAxis,
Expand All @@ -229,8 +234,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