Skip to content

a q-learning implementation of the cart pole environment in openai gym

Notifications You must be signed in to change notification settings

lcao300/cartpole

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cartpole Implementation

This repo contains a simple cartpole implementation using Q-learning.

How to Run

Clone this repo using:

https://github.com/lcao300/cartpole.git

To download the necessary libraries (preferably in a conda environment with python 3.6), run:

./install.sh

To train the cartpole algorithm from random initializations, run:

python main.py -train

To test the cartpole algorithm using q_table.npy, run:

python main.py -test

Releases

No releases published

Packages

No packages published