getting generation and individual from tools.HallOfFame

后端 未结 0 1770
醉酒成梦
醉酒成梦 2020-12-22 18:24

With

hof = tools.HallOfFame(1)
for gen in range(1, NGEN):
   [...]
   hof.update(pop)

print("best individual is %s" % (hof))
    

相关标签:
回答
  • 消灭零回复
提交回复
热议问题