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
449fb125
Unverified
Commit
449fb125
authored
Jul 30, 2021
by
Bill Wu
Committed by
GitHub
Jul 30, 2021
Browse files
fix ut (#3995)
parent
40942f29
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
test/ut/sdk/test_hpo_utils.py
test/ut/sdk/test_hpo_utils.py
+1
-1
No files found.
test/ut/sdk/test_hpo_utils.py
View file @
449fb125
...
@@ -31,7 +31,7 @@ bad_spec_type = { 'x': [1, 2, 3] }
...
@@ -31,7 +31,7 @@ bad_spec_type = { 'x': [1, 2, 3] }
bad_fields
=
{
'x'
:
{
'type'
:
'choice'
,
'value'
:
[
'a'
,
'b'
]
}
}
bad_fields
=
{
'x'
:
{
'type'
:
'choice'
,
'value'
:
[
'a'
,
'b'
]
}
}
bad_type_name
=
{
'x'
:
{
'_type'
:
'choic'
,
'_value'
:
[
'a'
]
}
}
bad_type_name
=
{
'x'
:
{
'_type'
:
'choic'
,
'_value'
:
[
'a'
]
}
}
bad_value
=
{
'x'
:
{
'_type'
:
'choice'
,
'_value'
:
'ab'
}
}
bad_value
=
{
'x'
:
{
'_type'
:
'choice'
,
'_value'
:
'ab'
}
}
bad_choice_args
=
{
'x'
:
{
'_type'
:
'choice'
,
'value'
:
[
'a'
,
object
()
]
}
}
bad_choice_args
=
{
'x'
:
{
'_type'
:
'choice'
,
'
_
value'
:
[
'a'
,
object
()
]
}
}
bad_2_args
=
{
'x'
:
{
'_type'
:
'randint'
,
'_value'
:
[
1
,
2
,
3
]
}
}
bad_2_args
=
{
'x'
:
{
'_type'
:
'randint'
,
'_value'
:
[
1
,
2
,
3
]
}
}
bad_3_args
=
{
'x'
:
{
'_type'
:
'quniform'
,
'_value'
:
[
0
]
}
}
bad_3_args
=
{
'x'
:
{
'_type'
:
'quniform'
,
'_value'
:
[
0
]
}
}
bad_int_args
=
{
'x'
:
{
'_type'
:
'randint'
,
'_value'
:
[
1.0
,
2.0
]
}
}
bad_int_args
=
{
'x'
:
{
'_type'
:
'randint'
,
'_value'
:
[
1.0
,
2.0
]
}
}
...
...
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