December 2019
Intermediate to advanced
368 pages
11h 10m
English
The following is an example of using the PyTorch NEAT library to implement a cartpole balancing controller. This is only being presented as an overview. Later in this book, we will dive deeper into the pole balancing problem in more detail. Let's get started:
config = neat.Config(neat.DefaultGenome, neat.DefaultReproduction, neat.DefaultSpeciesSet, neat.DefaultStagnation, config_file)
Here, the config_file file stores the NEAT algorithm settings, along with the default genome configuration.
pop = neat.Population(config)
Read now
Unlock full access