Example #1
0
 def test_optimisation_syn(self):
   """ Tests asynchronous optimisation. """
   self.report('Testing GPB on Euclidean space with 4 synchronous workers.')
   options = self._get_euc_gpb_arguments(self.func_caller.domain.get_dim())
   opt_val, opt_pt, history = gp_bandit.gpb_from_func_caller(self.func_caller,
     self.worker_manager_4, 20, mode='syn', acq='hucb', options=options)
   self._wrap_up_opt_test('syn', opt_val, opt_pt, history)
Example #2
0
 def test_optimisation_single(self):
   """ Test optimisation of a single point. """
   self.report('Testing GPB on Euclidean space with single worker.')
   options = self._get_euc_gpb_arguments(self.func_caller.domain.get_dim())
   opt_val, opt_pt, history = gp_bandit.gpb_from_func_caller(self.func_caller,
     self.worker_manager_1, 20, mode='asy', acq='ucb', options=options)
   self._wrap_up_opt_test('seq', opt_val, opt_pt, history)
 def run_optimiser(cls, func_caller, worker_manager, max_capital, mode,
                   *args, **kwargs):
     """ Runs optimiser. """
     return gp_bandit.gpb_from_func_caller(func_caller,
                                           worker_manager,
                                           max_capital,
                                           mode=mode,
                                           is_mf=True,
                                           *args,
                                           **kwargs)
 def run_optimiser(cls, func_caller, worker_manager, max_capital, mode,
                   *args, **kwargs):
     """ Runs optimiser. """
     return gp_bandit.gpb_from_func_caller(func_caller,
                                           worker_manager,
                                           max_capital,
                                           mode=mode,
                                           acq='add_ucb',
                                           is_mf=False,
                                           domain_add_max_group_size=0,
                                           *args,
                                           **kwargs)