-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8bd9a34
commit 540fcf0
Showing
23 changed files
with
69 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
# Email: [email protected] | ||
# License: MIT License | ||
|
||
from typing import List, Dict, Literal, Literal | ||
from typing import List, Dict, Literal, Union | ||
|
||
from ..search import Search | ||
from ..optimizers import BayesianOptimizer as _BayesianOptimizer | ||
|
@@ -50,7 +50,8 @@ def __init__( | |
self, | ||
search_space: Dict[str, list], | ||
initialize: Dict[ | ||
Literal["grid", "vertices", "random", "warm_start"], int | List | ||
Literal["grid", "vertices", "random", "warm_start"], | ||
Union[int, list[dict]], | ||
] = {"grid": 4, "random": 2, "vertices": 4}, | ||
constraints: List[callable] = [], | ||
random_state: int = None, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
# Email: [email protected] | ||
# License: MIT License | ||
|
||
from typing import List, Dict, Literal, Literal | ||
from typing import List, Dict, Literal, Union | ||
|
||
from ..search import Search | ||
from ..optimizers import ( | ||
|
@@ -45,7 +45,8 @@ def __init__( | |
self, | ||
search_space: Dict[str, list], | ||
initialize: Dict[ | ||
Literal["grid", "vertices", "random", "warm_start"], int | List | ||
Literal["grid", "vertices", "random", "warm_start"], | ||
Union[int, list[dict]], | ||
] = {"grid": 4, "random": 2, "vertices": 4}, | ||
constraints: List[callable] = [], | ||
random_state: int = None, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
# Email: [email protected] | ||
# License: MIT License | ||
|
||
from typing import List, Dict, Literal | ||
from typing import List, Dict, Literal, Union | ||
|
||
from ..search import Search | ||
from ..optimizers import DirectAlgorithm as _DirectAlgorithm | ||
|
@@ -45,7 +45,8 @@ def __init__( | |
self, | ||
search_space: Dict[str, list], | ||
initialize: Dict[ | ||
Literal["grid", "vertices", "random", "warm_start"], int | List | ||
Literal["grid", "vertices", "random", "warm_start"], | ||
Union[int, list[dict]], | ||
] = {"grid": 4, "random": 2, "vertices": 4}, | ||
constraints: List[callable] = [], | ||
random_state: int = None, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
# Email: [email protected] | ||
# License: MIT License | ||
|
||
from typing import List, Dict, Literal, Literal | ||
from typing import List, Dict, Literal, Union | ||
|
||
from ..search import Search | ||
from ..optimizers import DownhillSimplexOptimizer as _DownhillSimplexOptimizer | ||
|
@@ -45,7 +45,8 @@ def __init__( | |
self, | ||
search_space: Dict[str, list], | ||
initialize: Dict[ | ||
Literal["grid", "vertices", "random", "warm_start"], int | List | ||
Literal["grid", "vertices", "random", "warm_start"], | ||
Union[int, list[dict]], | ||
] = {"grid": 4, "random": 2, "vertices": 4}, | ||
constraints: List[callable] = [], | ||
random_state: int = None, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
# Email: [email protected] | ||
# License: MIT License | ||
|
||
from typing import List, Dict, Literal | ||
from typing import List, Dict, Literal, Union | ||
|
||
from ..search import Search | ||
from ..optimizers import EnsembleOptimizer as _EnsembleOptimizer | ||
|
@@ -13,7 +13,8 @@ def __init__( | |
self, | ||
search_space: Dict[str, list], | ||
initialize: Dict[ | ||
Literal["grid", "vertices", "random", "warm_start"], int | List | ||
Literal["grid", "vertices", "random", "warm_start"], | ||
Union[int, list[dict]], | ||
] = {"grid": 4, "random": 2, "vertices": 4}, | ||
constraints: List[callable] = [], | ||
random_state: int = None, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
# Email: [email protected] | ||
# License: MIT License | ||
|
||
from typing import List, Dict, Literal, Literal | ||
from typing import List, Dict, Literal, Union | ||
|
||
from ..search import Search | ||
from ..optimizers import ( | ||
|
@@ -51,7 +51,8 @@ def __init__( | |
self, | ||
search_space: Dict[str, list], | ||
initialize: Dict[ | ||
Literal["grid", "vertices", "random", "warm_start"], int | List | ||
Literal["grid", "vertices", "random", "warm_start"], | ||
Union[int, list[dict]], | ||
] = {"grid": 4, "random": 2, "vertices": 4}, | ||
constraints: List[callable] = [], | ||
random_state: int = None, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
# Email: [email protected] | ||
# License: MIT License | ||
|
||
from typing import List, Dict, Literal | ||
from typing import List, Dict, Literal, Union | ||
|
||
from ..search import Search | ||
from ..optimizers import ForestOptimizer as _ForestOptimizer | ||
|
@@ -51,7 +51,8 @@ def __init__( | |
self, | ||
search_space: Dict[str, list], | ||
initialize: Dict[ | ||
Literal["grid", "vertices", "random", "warm_start"], int | List | ||
Literal["grid", "vertices", "random", "warm_start"], | ||
Union[int, list[dict]], | ||
] = {"grid": 4, "random": 2, "vertices": 4}, | ||
constraints: List[callable] = [], | ||
random_state: int = None, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
# Email: [email protected] | ||
# License: MIT License | ||
|
||
from typing import List, Dict, Literal | ||
from typing import List, Dict, Literal, Union | ||
|
||
from ..search import Search | ||
from ..optimizers import GeneticAlgorithmOptimizer as _GeneticAlgorithmOptimizer | ||
|
@@ -49,7 +49,8 @@ def __init__( | |
self, | ||
search_space: Dict[str, list], | ||
initialize: Dict[ | ||
Literal["grid", "vertices", "random", "warm_start"], int | List | ||
Literal["grid", "vertices", "random", "warm_start"], | ||
Union[int, list[dict]], | ||
] = {"grid": 4, "random": 2, "vertices": 4}, | ||
constraints: List[callable] = [], | ||
random_state: int = None, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
# Email: [email protected] | ||
# License: MIT License | ||
|
||
from typing import List, Dict, Literal, Literal | ||
from typing import List, Dict, Literal, Union | ||
|
||
from ..search import Search | ||
from ..optimizers import GridSearchOptimizer as _GridSearchOptimizer | ||
|
@@ -41,7 +41,8 @@ def __init__( | |
self, | ||
search_space: Dict[str, list], | ||
initialize: Dict[ | ||
Literal["grid", "vertices", "random", "warm_start"], int | List | ||
Literal["grid", "vertices", "random", "warm_start"], | ||
Union[int, list[dict]], | ||
] = {"grid": 4, "random": 2, "vertices": 4}, | ||
constraints: List[callable] = [], | ||
random_state: int = None, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
# Email: [email protected] | ||
# License: MIT License | ||
|
||
from typing import List, Dict, Literal, Literal | ||
from typing import List, Dict, Literal, Union | ||
|
||
from ..search import Search | ||
from ..optimizers import HillClimbingOptimizer as _HillClimbingOptimizer | ||
|
@@ -44,7 +44,8 @@ def __init__( | |
self, | ||
search_space: Dict[str, list], | ||
initialize: Dict[ | ||
Literal["grid", "vertices", "random", "warm_start"], int | List | ||
Literal["grid", "vertices", "random", "warm_start"], | ||
Union[int, list[dict]], | ||
] = {"grid": 4, "random": 2, "vertices": 4}, | ||
constraints: List[callable] = [], | ||
random_state: int = None, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
# Email: [email protected] | ||
# License: MIT License | ||
|
||
from typing import List, Dict, Literal | ||
from typing import List, Dict, Literal, Union | ||
|
||
from ..search import Search | ||
from ..optimizers import LipschitzOptimizer as _LipschitzOptimizer | ||
|
@@ -45,7 +45,8 @@ def __init__( | |
self, | ||
search_space: Dict[str, list], | ||
initialize: Dict[ | ||
Literal["grid", "vertices", "random", "warm_start"], int | List | ||
Literal["grid", "vertices", "random", "warm_start"], | ||
Union[int, list[dict]], | ||
] = {"grid": 4, "random": 2, "vertices": 4}, | ||
constraints: List[callable] = [], | ||
random_state: int = None, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
# Email: [email protected] | ||
# License: MIT License | ||
|
||
from typing import List, Dict, Literal | ||
from typing import List, Dict, Literal, Union | ||
|
||
from ..search import Search | ||
from ..optimizers import ( | ||
|
@@ -46,7 +46,8 @@ def __init__( | |
self, | ||
search_space: Dict[str, list], | ||
initialize: Dict[ | ||
Literal["grid", "vertices", "random", "warm_start"], int | List | ||
Literal["grid", "vertices", "random", "warm_start"], | ||
Union[int, list[dict]], | ||
] = {"grid": 4, "random": 2, "vertices": 4}, | ||
constraints: List[callable] = [], | ||
random_state: int = None, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
# Email: [email protected] | ||
# License: MIT License | ||
|
||
from typing import List, Dict, Literal, Literal | ||
from typing import List, Dict, Literal, Union | ||
|
||
from ..search import Search | ||
from ..optimizers import ParticleSwarmOptimizer as _ParticleSwarmOptimizer | ||
|
@@ -47,7 +47,8 @@ def __init__( | |
self, | ||
search_space: Dict[str, list], | ||
initialize: Dict[ | ||
Literal["grid", "vertices", "random", "warm_start"], int | List | ||
Literal["grid", "vertices", "random", "warm_start"], | ||
Union[int, list[dict]], | ||
] = {"grid": 4, "random": 2, "vertices": 4}, | ||
constraints: List[callable] = [], | ||
random_state: int = None, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
# Email: [email protected] | ||
# License: MIT License | ||
|
||
from typing import List, Dict, Literal, Literal | ||
from typing import List, Dict, Literal, Union | ||
|
||
from ..search import Search | ||
from ..optimizers import PatternSearch as _PatternSearch | ||
|
@@ -43,7 +43,8 @@ def __init__( | |
self, | ||
search_space: Dict[str, list], | ||
initialize: Dict[ | ||
Literal["grid", "vertices", "random", "warm_start"], int | List | ||
Literal["grid", "vertices", "random", "warm_start"], | ||
Union[int, list[dict]], | ||
] = {"grid": 4, "random": 2, "vertices": 4}, | ||
constraints: List[callable] = [], | ||
random_state: int = None, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
# Email: [email protected] | ||
# License: MIT License | ||
|
||
from typing import List, Dict, Literal | ||
from typing import List, Dict, Literal, Union | ||
|
||
from ..search import Search | ||
from ..optimizers import PowellsMethod as _PowellsMethod | ||
|
@@ -44,7 +44,8 @@ def __init__( | |
self, | ||
search_space: Dict[str, list], | ||
initialize: Dict[ | ||
Literal["grid", "vertices", "random", "warm_start"], int | List | ||
Literal["grid", "vertices", "random", "warm_start"], | ||
Union[int, list[dict]], | ||
] = {"grid": 4, "random": 2, "vertices": 4}, | ||
constraints: List[callable] = [], | ||
random_state: int = None, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
# Email: [email protected] | ||
# License: MIT License | ||
|
||
from typing import List, Dict, Literal, Literal | ||
from typing import List, Dict, Literal, Union | ||
|
||
from ..search import Search | ||
from ..optimizers import RandomAnnealingOptimizer as _RandomAnnealingOptimizer | ||
|
@@ -48,7 +48,8 @@ def __init__( | |
self, | ||
search_space: Dict[str, list], | ||
initialize: Dict[ | ||
Literal["grid", "vertices", "random", "warm_start"], int | List | ||
Literal["grid", "vertices", "random", "warm_start"], | ||
Union[int, list[dict]], | ||
] = {"grid": 4, "random": 2, "vertices": 4}, | ||
constraints: List[callable] = [], | ||
random_state: int = None, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
# Email: [email protected] | ||
# License: MIT License | ||
|
||
from typing import List, Dict, Literal, Literal | ||
from typing import List, Dict, Literal, Union | ||
|
||
from ..search import Search | ||
from ..optimizers import ( | ||
|
@@ -50,7 +50,8 @@ def __init__( | |
self, | ||
search_space: Dict[str, list], | ||
initialize: Dict[ | ||
Literal["grid", "vertices", "random", "warm_start"], int | List | ||
Literal["grid", "vertices", "random", "warm_start"], | ||
Union[int, list[dict]], | ||
] = {"grid": 4, "random": 2, "vertices": 4}, | ||
constraints: List[callable] = [], | ||
random_state: int = None, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
# Email: [email protected] | ||
# License: MIT License | ||
|
||
from typing import List, Dict, Literal | ||
from typing import List, Dict, Literal, Union | ||
|
||
from ..search import Search | ||
from ..optimizers import RandomSearchOptimizer as _RandomSearchOptimizer | ||
|
@@ -35,7 +35,8 @@ def __init__( | |
self, | ||
search_space: Dict[str, list], | ||
initialize: Dict[ | ||
Literal["grid", "vertices", "random", "warm_start"], int | List | ||
Literal["grid", "vertices", "random", "warm_start"], | ||
Union[int, list[dict]], | ||
] = {"grid": 4, "random": 2, "vertices": 4}, | ||
constraints: List[callable] = [], | ||
random_state: int = None, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
# Email: [email protected] | ||
# License: MIT License | ||
|
||
from typing import List, Dict, Literal, Literal | ||
from typing import List, Dict, Literal, Union | ||
|
||
from ..search import Search | ||
from ..optimizers import ( | ||
|
@@ -48,7 +48,8 @@ def __init__( | |
self, | ||
search_space: Dict[str, list], | ||
initialize: Dict[ | ||
Literal["grid", "vertices", "random", "warm_start"], int | List | ||
Literal["grid", "vertices", "random", "warm_start"], | ||
Union[int, list[dict]], | ||
] = {"grid": 4, "random": 2, "vertices": 4}, | ||
constraints: List[callable] = [], | ||
random_state: int = None, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
# Email: [email protected] | ||
# License: MIT License | ||
|
||
from typing import List, Dict, Literal, Literal | ||
from typing import List, Dict, Literal, Union | ||
|
||
from ..search import Search | ||
from ..optimizers import ( | ||
|
@@ -50,7 +50,8 @@ def __init__( | |
self, | ||
search_space: Dict[str, list], | ||
initialize: Dict[ | ||
Literal["grid", "vertices", "random", "warm_start"], int | List | ||
Literal["grid", "vertices", "random", "warm_start"], | ||
Union[int, list[dict]], | ||
] = {"grid": 4, "random": 2, "vertices": 4}, | ||
constraints: List[callable] = [], | ||
random_state: int = None, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
# Email: [email protected] | ||
# License: MIT License | ||
|
||
from typing import List, Dict, Literal, Literal | ||
from typing import List, Dict, Literal, Union | ||
|
||
from ..search import Search | ||
from ..optimizers import SpiralOptimization as _SpiralOptimization | ||
|
@@ -42,7 +42,8 @@ def __init__( | |
self, | ||
search_space: Dict[str, list], | ||
initialize: Dict[ | ||
Literal["grid", "vertices", "random", "warm_start"], int | List | ||
Literal["grid", "vertices", "random", "warm_start"], | ||
Union[int, list[dict]], | ||
] = {"grid": 4, "random": 2, "vertices": 4}, | ||
constraints: List[callable] = [], | ||
random_state: int = None, | ||
|
Oops, something went wrong.