Exemplo n.º 1
0
 def _parse(self, args):
   super()._parse(args[0:3])
   args = args[3:]
   self.cand_params["pop_size"] = self._consumeParam(args)
   nb_offspring_ratio = self._consumeParam(args)
   nb_offspring = AutoMOEATranslator._parseRatio(self.cand_params["pop_size"], nb_offspring_ratio)
   self.cand_params["nb_offspring"] = "{:.0f}".format(nb_offspring)
   super()._parseEngine(args)
   if self.cand_params["engine"] == "GA":
     self.cand_params["pop_refinement"] = "PropHypervolumeContribution"
   else:
     self.cand_params["pop_refinement"] = "Dummy"
   super()._cmdLine()
Exemplo n.º 2
0
 def _parse(self, args):
   super()._parse(args[0:3])
   args = args[3:]
   self.cand_params["pop_size"] = self._consumeParam(args)
   nb_offspring_ratio = self._consumeParam(args)
   nb_offspring = AutoMOEATranslator._parseRatio(self.cand_params["pop_size"], nb_offspring_ratio)
   self.cand_params["nb_offspring"] = "{:.0f}".format(nb_offspring)
   super()._parseEngine(args)
   if self.cand_params["engine"] == "GA":
     self.cand_params["pop_setpart"] = "DomDepth"
     self.cand_params["pop_diversity"] = "Crowding"
   else:
     self.cand_params["pop_setpart"] = "Dummy"
     self.cand_params["pop_diversity"] = "Dummy"
   super()._cmdLine()
Exemplo n.º 3
0
 def _parse(self, args):
   super()._parse(args[0:3])
   args = args[3:]
   self.cand_params["pop_size"] = self._consumeParam(args)
   nb_offspring_ratio = self._consumeParam(args)
   nb_offspring = AutoMOEATranslator._parseRatio(self.cand_params["pop_size"], nb_offspring_ratio)
   self.cand_params["nb_offspring"] = "{:.0f}".format(nb_offspring)
   super()._parseEngine(args)
   if self.cand_params["engine"] == "GA":
     auto_k = self._consumeParam(args)
     if auto_k == "0":
       k = self._consumeParam(args)
       self.cand_params["pop_diversity"] = "kNN({})".format(k)
     else:
       self.cand_params["pop_diversity"] = "kNN"
   else:
     self.cand_params["pop_diversity"] = "Dummy"
   super()._cmdLine()