Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
nni
Commits
063d6b74
Unverified
Commit
063d6b74
authored
Apr 26, 2021
by
SparkSnail
Committed by
GitHub
Apr 26, 2021
Browse files
Merge pull request #3580 from microsoft/v2.2
[do not Squash!] Merge V2.2 back to master
parents
08986c6b
e1295888
Changes
86
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
20 additions
and
8 deletions
+20
-8
ts/webui/src/components/trial-detail/TableList.tsx
ts/webui/src/components/trial-detail/TableList.tsx
+1
-1
ts/webui/src/static/const.ts
ts/webui/src/static/const.ts
+1
-0
ts/webui/src/static/experimentConfig.ts
ts/webui/src/static/experimentConfig.ts
+4
-1
ts/webui/src/static/model/experiment.ts
ts/webui/src/static/model/experiment.ts
+9
-3
ts/webui/src/static/style/overview/count.scss
ts/webui/src/static/style/overview/count.scss
+1
-1
ts/webui/src/static/style/overview/probar.scss
ts/webui/src/static/style/overview/probar.scss
+4
-2
No files found.
ts/webui/src/components/trial-detail/TableList.tsx
View file @
063d6b74
...
...
@@ -419,7 +419,7 @@ class TableList extends React.Component<TableListProps, TableListState> {
private
_renderOperationColumn
(
record
:
any
):
React
.
ReactNode
{
const
runningTrial
:
boolean
=
[
'
RUNNING
'
,
'
UNKNOWN
'
].
includes
(
record
.
status
)
?
false
:
true
;
const
disabledAddCustomizedTrial
=
[
'
DONE
'
,
'
ERROR
'
,
'
STOPPED
'
].
includes
(
EXPERIMENT
.
status
);
const
disabledAddCustomizedTrial
=
[
'
DONE
'
,
'
ERROR
'
,
'
STOPPED
'
,
'
VIEWED
'
].
includes
(
EXPERIMENT
.
status
);
return
(
<
Stack
className
=
'detail-button'
horizontal
>
<
PrimaryButton
...
...
ts/webui/src/static/const.ts
View file @
063d6b74
...
...
@@ -21,6 +21,7 @@ const EXPERIMENTSTATUS = [
'
ERROR
'
,
'
STOPPING
'
,
'
STOPPED
'
,
'
VIEWED
'
,
'
DONE
'
,
'
NO_MORE_TRIAL
'
,
'
TUNER_NO_MORE_TRIAL
'
...
...
ts/webui/src/static/experimentConfig.ts
View file @
063d6b74
...
...
@@ -152,7 +152,10 @@ export interface ExperimentConfig {
const
timeUnits
=
{
d
:
24
*
3600
,
h
:
3600
,
m
:
60
,
s
:
1
};
export
function
toSeconds
(
time
:
string
):
number
{
export
function
toSeconds
(
time
:
string
|
number
):
number
{
if
(
typeof
time
===
'
number
'
)
{
return
time
;
}
for
(
const
[
unit
,
factor
]
of
Object
.
entries
(
timeUnits
))
{
if
(
time
.
endsWith
(
unit
))
{
const
digits
=
time
.
slice
(
0
,
-
1
);
...
...
ts/webui/src/static/model/experiment.ts
View file @
063d6b74
...
...
@@ -116,12 +116,12 @@ class Experiment {
}
get
maxExperimentDurationSeconds
():
number
{
const
value
=
this
.
config
.
maxExperimentDuration
;
const
value
=
this
.
config
.
maxExperimentDuration
||
(
this
.
config
as
any
).
maxExecDuration
;
return
value
===
undefined
?
Infinity
:
toSeconds
(
value
);
}
get
maxTrialNumber
():
number
{
const
value
=
this
.
config
.
maxTrialNumber
;
const
value
=
this
.
config
.
maxTrialNumber
||
(
this
.
config
as
any
).
maxTrialNum
;
return
value
===
undefined
?
Infinity
:
value
;
}
...
...
@@ -139,7 +139,13 @@ class Experiment {
}
get
trainingServicePlatform
():
string
{
return
this
.
config
.
trainingService
.
platform
;
if
(
Array
.
isArray
(
this
.
config
.
trainingService
))
{
return
'
hybrid
'
;
}
else
if
(
this
.
config
.
trainingService
)
{
return
this
.
config
.
trainingService
.
platform
;
}
else
{
return
(
this
.
config
as
any
).
trainingServicePlatform
;
}
}
get
searchSpace
():
object
{
...
...
ts/webui/src/static/style/overview/count.scss
View file @
063d6b74
...
...
@@ -78,7 +78,7 @@ $margin: 24px;
}
&
-dropdown
{
width
:
6
5
px
;
width
:
6
0
px
;
display
:
inline-block
;
position
:
relative
;
top
:
13px
;
...
...
ts/webui/src/static/style/overview/probar.scss
View file @
063d6b74
...
...
@@ -19,7 +19,8 @@ $error: #a4262c;
}
.DONE
,
.STOPPED
{
.STOPPED
,
.VIEWED
{
color
:
$done
;
.ms-ProgressIndicator-progressBar
{
...
...
@@ -37,7 +38,8 @@ $error: #a4262c;
.bestMetric
{
.DONE
,
.STOPPED
{
.STOPPED
,
.VIEWED
{
color
:
$done
;
}
...
...
Prev
1
2
3
4
5
Next
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