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
817ec68b
Unverified
Commit
817ec68b
authored
Apr 09, 2021
by
liuzhe-lz
Committed by
GitHub
Apr 09, 2021
Browse files
Add native support for v2 config (#3466)
parent
6aaca5f7
Changes
69
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
235 additions
and
143 deletions
+235
-143
ts/webui/src/components/modals/ExperimentSummaryPanel.tsx
ts/webui/src/components/modals/ExperimentSummaryPanel.tsx
+0
-3
ts/webui/src/components/overview/command/Command1.tsx
ts/webui/src/components/overview/command/Command1.tsx
+4
-4
ts/webui/src/components/overview/command/Command2.tsx
ts/webui/src/components/overview/command/Command2.tsx
+2
-17
ts/webui/src/components/overview/count/ExpDuration.tsx
ts/webui/src/components/overview/count/ExpDuration.tsx
+1
-1
ts/webui/src/components/overview/count/ExpDurationContext.tsx
...ebui/src/components/overview/count/ExpDurationContext.tsx
+1
-0
ts/webui/src/components/overview/count/TrialCount.tsx
ts/webui/src/components/overview/count/TrialCount.tsx
+3
-3
ts/webui/src/static/experimentConfig.ts
ts/webui/src/static/experimentConfig.ts
+163
-0
ts/webui/src/static/interface.ts
ts/webui/src/static/interface.ts
+8
-50
ts/webui/src/static/model/experiment.ts
ts/webui/src/static/model/experiment.ts
+53
-65
No files found.
ts/webui/src/components/modals/ExperimentSummaryPanel.tsx
View file @
817ec68b
...
...
@@ -32,9 +32,6 @@ class ExperimentSummaryPanel extends React.Component<ExpDrawerProps, ExpDrawerSt
getExperimentContent
=
():
void
=>
{
const
experimentData
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
props
.
experimentProfile
));
if
(
experimentData
.
params
.
searchSpace
)
{
experimentData
.
params
.
searchSpace
=
JSON
.
parse
(
experimentData
.
params
.
searchSpace
);
}
const
trialMessagesArr
=
TRIALS
.
getTrialJobList
();
const
interResultList
=
TRIALS
.
getMetricsList
();
Object
.
keys
(
trialMessagesArr
).
map
(
item
=>
{
...
...
ts/webui/src/components/overview/command/Command1.tsx
View file @
817ec68b
...
...
@@ -11,24 +11,24 @@ export const Command1 = (): any => {
const
builtinName
:
string
[]
=
[];
if
(
tuner
!==
undefined
)
{
title
.
push
(
'
Tuner
'
);
builtinName
.
push
(
tuner
.
builtinTunerN
ame
||
tuner
.
className
||
'
unknown
'
);
builtinName
.
push
(
tuner
.
n
ame
||
tuner
.
className
||
'
unknown
'
);
}
if
(
advisor
!==
undefined
)
{
title
.
push
(
'
Advisor
'
);
builtinName
.
push
(
advisor
.
builtinAdvisorN
ame
||
advisor
.
className
||
'
unknown
'
);
builtinName
.
push
(
advisor
.
n
ame
||
advisor
.
className
||
'
unknown
'
);
}
if
(
assessor
!==
undefined
)
{
title
.
push
(
'
Assessor
'
);
builtinName
.
push
(
assessor
.
builtinAssessorN
ame
||
assessor
.
className
||
'
unknown
'
);
builtinName
.
push
(
assessor
.
n
ame
||
assessor
.
className
||
'
unknown
'
);
}
return
(
<
div
className
=
'basic'
style
=
{
rightEidtParam
}
>
<
div
>
<
p
className
=
'command'
>
Training platform
</
p
>
<
div
className
=
'ellipsis'
>
{
EXPERIMENT
.
profile
.
params
.
trainingServicePlatform
}
</
div
>
<
div
className
=
'ellipsis'
>
{
EXPERIMENT
.
trainingServicePlatform
}
</
div
>
<
p
className
=
'lineMargin'
>
{
title
.
join
(
'
/
'
)
}
</
p
>
<
div
className
=
'ellipsis'
>
{
builtinName
.
join
(
'
/
'
)
}
</
div
>
</
div
>
...
...
ts/webui/src/components/overview/command/Command2.tsx
View file @
817ec68b
This diff is collapsed.
Click to expand it.
ts/webui/src/components/overview/count/ExpDuration.tsx
View file @
817ec68b
...
...
@@ -53,7 +53,7 @@ export const ExpDuration = (): any => (
field
:
'
maxExecDuration
'
,
title
:
'
Max duration
'
,
maxExecDuration
:
maxExecDurationStr
,
maxTrialNum
:
EXPERIMENT
.
profile
.
params
.
maxTrialNum
,
maxTrialNum
:
EXPERIMENT
.
maxTrialNum
ber
,
trialConcurrency
:
EXPERIMENT
.
profile
.
params
.
trialConcurrency
,
updateOverviewPage
}
}
...
...
ts/webui/src/components/overview/count/ExpDurationContext.tsx
View file @
817ec68b
import
React
from
'
react
'
;
export
const
ExpDurationContext
=
React
.
createContext
({
maxExecDuration
:
0
,
execDuration
:
0
,
...
...
ts/webui/src/components/overview/count/TrialCount.tsx
View file @
817ec68b
This diff is collapsed.
Click to expand it.
ts/webui/src/static/experimentConfig.ts
0 → 100644
View file @
817ec68b
This diff is collapsed.
Click to expand it.
ts/webui/src/static/interface.ts
View file @
817ec68b
This diff is collapsed.
Click to expand it.
ts/webui/src/static/model/experiment.ts
View file @
817ec68b
This diff is collapsed.
Click to expand it.
Prev
1
2
3
4
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