Technical requirements
In this chapter, we will use Python 3 with the following supporting libraries:
deap
numpy
scikit-learn
gymnasium
– introduced in this chapterpygame
– introduced in this chapter
Important Note
If you use the requirements.txt
file we provide (See Chapter 3), these libraries are already included in your environment.
The Gymnasium environments that will be used in this chapter are MountainCar-v0 (https://gymnasium.farama.org/environments/classic_control/mountain_car/) and CartPole-v1 (https://gymnasium.farama.org/environments/classic_control/cart_pole/).
The programs that will be used in this chapter can be found in this book’s GitHub repository at https://github.com/PacktPublishing/Hands-On-Genetic-Algorithms-with-Python-Second-Edition/tree/main/chapter_10.
Check out the following video to see the code in action: https://packt.link/OEBOd.