Beispiel #1
0
 def __init__(self):
     """Init BossHpo."""
     super(BossHpo, self).__init__()
     hps = json_to_hps(self.cfg.hyperparameter_space)
     if self.policy.total_epochs < 3:
         raise ValueError(
             'set total_epochs illegal, count not less than 3!')
     self.hpo = BOSS(hps, self.policy.config_count,
                     self.policy.total_epochs, self.policy.repeat_times)
Beispiel #2
0
 def __init__(self):
     """Init RandomParetoHpo."""
     super(RandomParetoHpo, self).__init__()
     hps = json_to_hps(self.cfg.hyperparameter_space)
     self.hpo = RandomPareto(
         hps,
         self.policy.config_count,
         self.policy.total_epochs,
         object_count=int(self.policy.pareto.object_count),
         max_object_ids=self.policy.pareto.max_object_ids)
Beispiel #3
0
 def __init__(self):
     """Init AshaHpo."""
     super(AshaHpo, self).__init__()
     hps = json_to_hps(self.cfg.hyperparameter_space)
     self.hpo = ASHA(hps, self.policy.config_count,
                     self.policy.total_epochs)
Beispiel #4
0
 def __init__(self, search_space=None, **kwargs):
     super(HPOBase, self).__init__(search_space, **kwargs)
     self.hps = json_to_hps(search_space)
     self.hpo = None
Beispiel #5
0
 def __init__(self):
     """Init RandomHpo."""
     super(RandomHpo, self).__init__()
     hps = json_to_hps(self.cfg.hyperparameter_space)
     self.hpo = RandomSearch(hps, self.policy.config_count,
                             self.policy.total_epochs)
Beispiel #6
0
 def __init__(self):
     """Init BohbHpo."""
     super(BohbHpo, self).__init__()
     hps = json_to_hps(self.cfg.hyperparameter_space)
     self.hpo = BOHB(hps, self.policy.config_count,
                     self.policy.total_epochs, self.policy.repeat_times)