| @@ 38-49 (lines=12) @@ | ||
| 35 | search_id = objective_function.__name__ |
|
| 36 | return search_id |
|
| 37 | ||
| 38 | @staticmethod |
|
| 39 | def check_list(search_space): |
|
| 40 | for key in search_space.keys(): |
|
| 41 | search_dim = search_space[key] |
|
| 42 | ||
| 43 | error_msg = ( |
|
| 44 | "Value in '{}' of search space dictionary must be of type list".format( |
|
| 45 | key |
|
| 46 | ) |
|
| 47 | ) |
|
| 48 | if not isinstance(search_dim, list): |
|
| 49 | print("Warning", error_msg) |
|
| 50 | # raise ValueError(error_msg) |
|
| 51 | ||
| 52 | def add_search( |
|
| @@ 92-101 (lines=10) @@ | ||
| 89 | search_id = objective_function.__name__ |
|
| 90 | return search_id |
|
| 91 | ||
| 92 | @staticmethod |
|
| 93 | def check_list(search_space): |
|
| 94 | for key in search_space.keys(): |
|
| 95 | search_dim = search_space[key] |
|
| 96 | ||
| 97 | error_msg = "Value in '{}' of search space dictionary must be of type list".format( |
|
| 98 | key |
|
| 99 | ) |
|
| 100 | if not isinstance(search_dim, list): |
|
| 101 | print("Warning", error_msg) |
|
| 102 | # raise ValueError(error_msg) |
|
| 103 | ||
| 104 | def add_search( |
|