self.best_index_ = None
self.multimetric_ = False
if len(self.search_spaces_) == 0:
raise ValueError(
"Please provide search space using `add_spaces` first before"
"calling fit method."
)
After Change
// Instanciate optimizers for all the search spaces.
self.optimizer_ = {}
for space_id in self.search_spaces_.keys():
self.optimizer_[space_id] = self._make_optimizer(search_spaces)
self.optimizer_kwargs_ = {} if self.optimizer_kwargs is None else\