December 2019
Intermediate to advanced
368 pages
11h 10m
English
The runner function has many similarities to the runner function introduced in the previous chapter, but, at the same time, it has unique features that are specific to the NS optimization algorithm.
Here, we consider the most significant parts of the implementation:
seed = int(time.time()) random.seed(seed)
config = neat.Config(neat.DefaultGenome, neat.DefaultReproduction, neat.DefaultSpeciesSet, neat.DefaultStagnation, config_file)p = neat.Population(config)
Read now
Unlock full access