| @@ 14-51 (lines=38) @@ | ||
| 11 | ||
| 12 | ||
| 13 | class SearchProcessLongMem(SearchProcessShortMem): |
|
| 14 | def __init__( |
|
| 15 | self, |
|
| 16 | nth_process, |
|
| 17 | verb, |
|
| 18 | objective_function, |
|
| 19 | search_space, |
|
| 20 | n_iter, |
|
| 21 | function_parameter, |
|
| 22 | optimizer, |
|
| 23 | n_jobs, |
|
| 24 | init_para, |
|
| 25 | memory, |
|
| 26 | hyperactive, |
|
| 27 | random_state, |
|
| 28 | ): |
|
| 29 | super().__init__( |
|
| 30 | nth_process, |
|
| 31 | verb, |
|
| 32 | objective_function, |
|
| 33 | search_space, |
|
| 34 | n_iter, |
|
| 35 | function_parameter, |
|
| 36 | optimizer, |
|
| 37 | n_jobs, |
|
| 38 | init_para, |
|
| 39 | memory, |
|
| 40 | hyperactive, |
|
| 41 | random_state, |
|
| 42 | ) |
|
| 43 | ||
| 44 | self.cand = CandidateShortMem( |
|
| 45 | self.objective_function, |
|
| 46 | self.function_parameter, |
|
| 47 | self.search_space, |
|
| 48 | self.init_para, |
|
| 49 | self.memory, |
|
| 50 | verb, |
|
| 51 | hyperactive, |
|
| 52 | ) |
|
| 53 | ||
| 54 | ||
| @@ 14-51 (lines=38) @@ | ||
| 11 | ||
| 12 | ||
| 13 | class SearchProcessShortMem(SearchProcess): |
|
| 14 | def __init__( |
|
| 15 | self, |
|
| 16 | nth_process, |
|
| 17 | verb, |
|
| 18 | objective_function, |
|
| 19 | search_space, |
|
| 20 | n_iter, |
|
| 21 | function_parameter, |
|
| 22 | optimizer, |
|
| 23 | n_jobs, |
|
| 24 | init_para, |
|
| 25 | memory, |
|
| 26 | hyperactive, |
|
| 27 | random_state, |
|
| 28 | ): |
|
| 29 | super().__init__( |
|
| 30 | nth_process, |
|
| 31 | verb, |
|
| 32 | objective_function, |
|
| 33 | search_space, |
|
| 34 | n_iter, |
|
| 35 | function_parameter, |
|
| 36 | optimizer, |
|
| 37 | n_jobs, |
|
| 38 | init_para, |
|
| 39 | memory, |
|
| 40 | hyperactive, |
|
| 41 | random_state, |
|
| 42 | ) |
|
| 43 | ||
| 44 | self.cand = CandidateShortMem( |
|
| 45 | self.objective_function, |
|
| 46 | self.function_parameter, |
|
| 47 | self.search_space, |
|
| 48 | self.init_para, |
|
| 49 | self.memory, |
|
| 50 | verb, |
|
| 51 | hyperactive, |
|
| 52 | ) |
|
| 53 | ||
| 54 | def _memory2dataframe(self, memory): |
|
| @@ 10-47 (lines=38) @@ | ||
| 7 | ||
| 8 | ||
| 9 | class SearchProcessNoMem(SearchProcess): |
|
| 10 | def __init__( |
|
| 11 | self, |
|
| 12 | nth_process, |
|
| 13 | verb, |
|
| 14 | objective_function, |
|
| 15 | search_space, |
|
| 16 | n_iter, |
|
| 17 | function_parameter, |
|
| 18 | optimizer, |
|
| 19 | n_jobs, |
|
| 20 | init_para, |
|
| 21 | memory, |
|
| 22 | hyperactive, |
|
| 23 | random_state, |
|
| 24 | ): |
|
| 25 | super().__init__( |
|
| 26 | nth_process, |
|
| 27 | verb, |
|
| 28 | objective_function, |
|
| 29 | search_space, |
|
| 30 | n_iter, |
|
| 31 | function_parameter, |
|
| 32 | optimizer, |
|
| 33 | n_jobs, |
|
| 34 | init_para, |
|
| 35 | memory, |
|
| 36 | hyperactive, |
|
| 37 | random_state, |
|
| 38 | ) |
|
| 39 | ||
| 40 | self.cand = CandidateNoMem( |
|
| 41 | self.objective_function, |
|
| 42 | self.function_parameter, |
|
| 43 | self.search_space, |
|
| 44 | self.init_para, |
|
| 45 | self.memory, |
|
| 46 | verb, |
|
| 47 | hyperactive, |
|
| 48 | ) |
|
| 49 | ||