Skip to content

Commit 9fc4bdc

Browse files
committed
update configs
1 parent 7090e2f commit 9fc4bdc

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

autointent/nodes/schemes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,10 @@ def generate_models_and_union_type_for_classes( # noqa: PLR0912, C901
110110
if get_origin(dict_values_types) is UnionType:
111111
filed_types: list[type[Any]] = []
112112
for value in get_args(dict_values_types):
113-
filed_types.append(list[value]) # type: ignore[valid-type]
114113
search_type = get_optuna_class(value)
115114
if search_type is not None:
116115
filed_types.append(search_type)
116+
filed_types.append(list[value]) # type: ignore[valid-type]
117117
filed_type = to_union(filed_types)
118118
else:
119119
filed_type = dict_values_types

docs/optimizer_config.schema.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1615,24 +1615,24 @@
16151615
{
16161616
"additionalProperties": {
16171617
"anyOf": [
1618+
{
1619+
"$ref": "#/$defs/ParamSpaceInt"
1620+
},
16181621
{
16191622
"items": {
16201623
"type": "integer"
16211624
},
16221625
"type": "array"
16231626
},
16241627
{
1625-
"$ref": "#/$defs/ParamSpaceInt"
1628+
"$ref": "#/$defs/ParamSpaceFloat"
16261629
},
16271630
{
16281631
"items": {
16291632
"type": "number"
16301633
},
16311634
"type": "array"
16321635
},
1633-
{
1634-
"$ref": "#/$defs/ParamSpaceFloat"
1635-
},
16361636
{
16371637
"items": {
16381638
"type": "string"

docs/optimizer_search_space_config.schema.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1478,24 +1478,24 @@
14781478
{
14791479
"additionalProperties": {
14801480
"anyOf": [
1481+
{
1482+
"$ref": "#/$defs/ParamSpaceInt"
1483+
},
14811484
{
14821485
"items": {
14831486
"type": "integer"
14841487
},
14851488
"type": "array"
14861489
},
14871490
{
1488-
"$ref": "#/$defs/ParamSpaceInt"
1491+
"$ref": "#/$defs/ParamSpaceFloat"
14891492
},
14901493
{
14911494
"items": {
14921495
"type": "number"
14931496
},
14941497
"type": "array"
14951498
},
1496-
{
1497-
"$ref": "#/$defs/ParamSpaceFloat"
1498-
},
14991499
{
15001500
"items": {
15011501
"type": "string"
@@ -1665,10 +1665,10 @@
16651665
"items": {
16661666
"anyOf": [
16671667
{
1668-
"$ref": "#/$defs/EmbeddingNodeValidator"
1668+
"$ref": "#/$defs/ScoringNodeValidator"
16691669
},
16701670
{
1671-
"$ref": "#/$defs/ScoringNodeValidator"
1671+
"$ref": "#/$defs/EmbeddingNodeValidator"
16721672
},
16731673
{
16741674
"$ref": "#/$defs/DecisionNodeValidator"

0 commit comments

Comments
 (0)