Skip to content

Balancing CartPole-v1 from OpenAI Gym by employing Epsilon-Greedy strategy for Q-Learning, and by means of Genetic Algorithm.

License

Notifications You must be signed in to change notification settings

111989/cartpole_v1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CartPole_Q-Learning

Balancing CartPole-v1 from OpenAI Gym by means of Reinforcement Learning, specifically employing Epsilon-Greedy strategy for Q-Learning.

Refer to q_learning.pdf for more information about Q-Learning.

Q-Learning CartPole-v1 Output Plot
cartpole-q_learning

CartPole_Genetic

Genetic Algorithm/ Neural Network implementation for balancing CartPole-v1 from OpenAI Gym, based on Zachary Richardson's implementation.

Genetic CartPole-v1 Output Plot
cartpole-genetic

Running the codes

python cartpole_q_learning.py

python cartpole_q_learning.py --episodes 1000 --alpha 0.1 --gamma 0.95

python cartpole_genetic.py

python cartpole_genetic.py --generations 10 --steps 500 --population 20 --mutation 0.01

Dependency

Gym

About

Balancing CartPole-v1 from OpenAI Gym by employing Epsilon-Greedy strategy for Q-Learning, and by means of Genetic Algorithm.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages