Skip to content

Repository for Reinforcement Learning projects with cartpole

Notifications You must be signed in to change notification settings

danikhani/cartpole_rl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Reinforcement Learning for an Inverted Pendulum

In this repository control of inverse pendel has been implemented

Q-Learning with GYM cartpole:

  1. Install the requirements.txt with ' pip install requirments.txt '

  2. the settings of the training can be changed in config.py

  3. navigate to /Q-learning for training run: 'python main.py -t' after this a .npy file with the Q-table will be saved under weights

  4. The Q-table can be used to visualize the control via 'python main.py'

Training progress with 200 steps

Demo with 200 steps

The space-state of the cartpole was implemented in this repository: https://github.com/openai/gym/blob/master/gym/envs/classic_control/cartpole.py

TODO:

  • Impalement DQN
  • Impalement DDQN

Authors:

  • Danikhani

License

This project is licensed under the MIT License

About

Repository for Reinforcement Learning projects with cartpole

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages