Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
nni
Commits
8bb38750
Commit
8bb38750
authored
Jul 23, 2019
by
v-liguo
Browse files
[Fix issue#1210]
parent
251a439d
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
3 deletions
+9
-3
src/webui/src/components/TrialsDetail.tsx
src/webui/src/components/TrialsDetail.tsx
+3
-1
src/webui/src/components/public-child/IntermediateVal.tsx
src/webui/src/components/public-child/IntermediateVal.tsx
+2
-1
src/webui/src/components/public-child/OpenRow.tsx
src/webui/src/components/public-child/OpenRow.tsx
+2
-0
src/webui/src/components/trial-detail/TableList.tsx
src/webui/src/components/trial-detail/TableList.tsx
+1
-1
src/webui/src/static/interface.ts
src/webui/src/static/interface.ts
+1
-0
No files found.
src/webui/src/components/TrialsDetail.tsx
View file @
8bb38750
...
...
@@ -104,7 +104,8 @@ class TrialsDetail extends React.Component<TrialsDetailProps, TrialDetailState>
Object
.
keys
(
trialJobs
).
map
(
item
=>
{
let
desc
:
Parameters
=
{
parameters
:
{},
intermediate
:
[]
intermediate
:
[],
progress
:
1
};
let
duration
=
0
;
const
id
=
trialJobs
[
item
].
id
!==
undefined
...
...
@@ -125,6 +126,7 @@ class TrialsDetail extends React.Component<TrialsDetailProps, TrialDetailState>
const
tempHyper
=
trialJobs
[
item
].
hyperParameters
;
if
(
tempHyper
!==
undefined
)
{
const
getPara
=
JSON
.
parse
(
tempHyper
[
tempHyper
.
length
-
1
]).
parameters
;
desc
.
progress
=
tempHyper
.
length
;
if
(
typeof
getPara
===
'
string
'
)
{
desc
.
parameters
=
JSON
.
parse
(
getPara
);
}
else
{
...
...
src/webui/src/components/public-child/IntermediateVal.tsx
View file @
8bb38750
...
...
@@ -32,7 +32,8 @@ class IntermediateVal extends React.Component<IntermediateValProps, {}> {
if
(
status
===
'
SUCCEEDED
'
)
{
result
=
`
${
result
}
(FINAL)`
;
}
else
{
result
=
`
${
result
}
(LATEST)`
;
// result = `${result} (LATEST)`;
result
=
`
${
result
}
(#
${
interArr
.
length
}
)`
;
}
}
else
{
result
=
'
--
'
;
...
...
src/webui/src/components/public-child/OpenRow.tsx
View file @
8bb38750
...
...
@@ -97,6 +97,8 @@ class OpenRow extends React.Component<OpenRowProps, OpenRowState> {
<
br
/>
For the entire parameter set, please refer to the following "
<
a
href
=
{
trialink
}
target
=
"_blank"
>
{
trialink
}
</
a
>
".
<
br
/>
Current Phase:
{
record
.
description
.
progress
}
.
</
Row
>
:
<
div
/>
...
...
src/webui/src/components/trial-detail/TableList.tsx
View file @
8bb38750
...
...
@@ -391,7 +391,7 @@ class TableList extends React.Component<TableListProps, TableListState> {
break
;
case
'
Default
'
:
showColumn
.
push
({
title
:
'
Default metric
'
,
title
:
'
Default metric
(latest seq)
'
,
className
:
'
leftTitle
'
,
dataIndex
:
'
acc
'
,
key
:
'
acc
'
,
...
...
src/webui/src/static/interface.ts
View file @
8bb38750
...
...
@@ -27,6 +27,7 @@ interface Parameters {
parameters
:
ErrorParameter
;
logPath
?:
string
;
intermediate
:
Array
<
number
>
;
progress
?:
number
;
}
interface
Experiment
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment