Conditions | 1 |
Total Lines | 14 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | """Base class for optimizer.""" |
||
43 | def run(self): |
||
44 | """Run the optimization search process. |
||
45 | |||
46 | Returns |
||
47 | ------- |
||
48 | best_params : dict |
||
49 | The best parameters found during the optimization process. |
||
50 | """ |
||
51 | experiment = self.get_experiment() |
||
52 | search_config = self.get_search_config() |
||
53 | |||
54 | best_params = self._run(experiment, **search_config) |
||
55 | self.best_params_ = best_params |
||
56 | return best_params |
||
57 |