コード例 #1
0
 def stop(self):
     if self.is_slave:
         return
     self.info("Best fitness: %s", self.best.fitness)
     self.info("Best snapshot: %s", self.best.snapshot)
     self.info("Best configuration")
     print_config(self.best.config)
コード例 #2
0
 def stop(self):
     if self.is_slave:
         return
     self.info("Best fitness: %s", self.best.fitness)
     self.info("Best snapshot: %s", self.best.snapshot)
     self.info("Best configuration")
     print_config(self.best.config)
コード例 #3
0
 def stop(self):
     if self.is_slave:
         return
     self.info("Best fitness: %s", self.best.fitness)
     self.info("Best snapshot: %s", self.best.snapshot)
     self.info("Best configuration")
     print_config(self.best.config)
     path_to_the_best_config = "%s_best_config.py" % self._model_.__name__
     with open(path_to_the_best_config, "w") as fout:
         fout.write("from veles.config import root\n\n\nroot.update(%s)" %
                    fix_contents(self.best.config))
     self.info("Best configuration was saved to %s" %
               path_to_the_best_config)
コード例 #4
0
ファイル: optimization_workflow.py プロジェクト: 2php/veles
 def stop(self):
     if self.is_slave:
         return
     self.info("Best fitness: %s", self.best.fitness)
     self.info("Best snapshot: %s", self.best.snapshot)
     self.info("Best configuration")
     print_config(self.best.config)
     path_to_the_best_config = "%s_best_config.py" % self._model_.__name__
     with open(path_to_the_best_config, "w") as fout:
         fout.write(
             "from veles.config import root\n\n\nroot.update(%s)" %
             fix_contents(self.best.config))
     self.info(
         "Best configuration was saved to %s" % path_to_the_best_config)