Пример #1
0
 def _set_param_space(self, param_space):
     self.param_space = param_space
     self.bounds = get_bounds(param_space)
     if self.init_guess is None:
         self.init_guess = get_init_guess(param_space,
                                          method=self.init_guess_method,
                                          random_seed=self.init_guess_seed)
Пример #2
0
 def _set_param_space(self, param_space):
     self.param_space = param_space
     self.bounds = np.transpose(get_bounds(param_space)).tolist()
     if self.init_guess is None:
         self.init_guess = get_init_guess(param_space,
                                          method=self.init_guess_method,
                                          random_seed=self.init_guess_seed)