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
07df1c9f
Unverified
Commit
07df1c9f
authored
Aug 05, 2022
by
Lijiaoa
Committed by
GitHub
Aug 05, 2022
Browse files
detail page empty with tensorflow tutorial code because of the "None" (#5011)
parent
9f65f12a
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
863 additions
and
838 deletions
+863
-838
ts/webui/src/static/function.ts
ts/webui/src/static/function.ts
+2
-1
ts/webui/src/static/model/trial.ts
ts/webui/src/static/model/trial.ts
+6
-0
ts/webui/yarn.lock
ts/webui/yarn.lock
+855
-837
No files found.
ts/webui/src/static/function.ts
View file @
07df1c9f
...
@@ -245,7 +245,8 @@ function formatComplexTypeValue(value: any): string | number {
...
@@ -245,7 +245,8 @@ function formatComplexTypeValue(value: any): string | number {
if
([
'
number
'
,
'
string
'
].
includes
(
typeof
value
))
{
if
([
'
number
'
,
'
string
'
].
includes
(
typeof
value
))
{
return
value
;
return
value
;
}
else
{
}
else
{
return
value
.
toString
();
// for hpo experiment: search space choice value is None, and it shows null
return
String
(
value
);
}
}
}
}
...
...
ts/webui/src/static/model/trial.ts
View file @
07df1c9f
...
@@ -114,6 +114,12 @@ class Trial {
...
@@ -114,6 +114,12 @@ class Trial {
if
(
typeof
params
===
'
string
'
)
{
if
(
typeof
params
===
'
string
'
)
{
params
=
JSON
.
parse
(
params
);
params
=
JSON
.
parse
(
params
);
}
}
// for hpo experiment: search space choice value is None, and it shows null
for
(
const
[
key
,
value
]
of
Object
.
entries
(
params
))
{
if
(
Object
.
is
(
null
,
value
))
{
params
[
key
]
=
'
null
'
;
}
}
const
[
updated
,
unexpectedEntries
]
=
inferTrialParameters
(
params
,
axes
);
const
[
updated
,
unexpectedEntries
]
=
inferTrialParameters
(
params
,
axes
);
if
(
unexpectedEntries
.
size
)
{
if
(
unexpectedEntries
.
size
)
{
throw
unexpectedEntries
;
throw
unexpectedEntries
;
...
...
ts/webui/yarn.lock
View file @
07df1c9f
This diff is collapsed.
Click to expand it.
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