Skip to content
inverted pendulum implementation with python and q learnin
Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.idea
drawable
learned_data
.gitignore
README.md
actiontype.py
config.py
engine.py
exception.py
gui.py
main.py
physicalobject.py
player.py
qlearning.py
worldmodel.py

README.md

Inverted Pendulum

This project contains physic simulation of environment and solving the inverted pendulum problem using Q-Learned agent!

Requirement

  • python = 2.7
  • pygame >= 1.9

Setup

  • installing dependencies:

    $ sudo apt-get install python-pygame

  • launch:

    $ git clone https://github.com/kazemnejad/inverted-pendulum.git
    $ cd inverted-pendulum 
    $ python main.py
    
  • Command-Line Interface:

    -a / --ai-player: use AI player instead of Keyboard

    -l / --learning : start with Learning Engine

    -c / --clean-learning-data : backup previous learned data and start new one

    -s / --show-learned-data: print learned data in console, should be used with -l

    -g / --enable-gui: enable gui while learning

You can’t perform that action at this time.