Skip to content

Simple q-learning implementation for taxi-v3 environment of Open AI gym.

Notifications You must be signed in to change notification settings

satwikkansal/q-learning-taxi-v3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

q-learning-taxi-v3

Table based q-learning implementation for taxi-v3 environment of Open AI gym.

Read the tutorial here https://www.learndatasci.com/tutorials/reinforcement-q-learning-scratch-python-openai-gym/

Instructions to run

$ pip install -r requirements.txt

Training

$ python train.py --help
Usage: train.py [OPTIONS]

Options:
  --num-episodes INTEGER  Number of episodes to train on  [default: 100000]
  --save-path TEXT        Path to save the Q-table dump  [default:
                          q_table.pickle]
  --help                  Show this message and exit.

Evaluation

$ python evaluate.py --help
Usage: evaluate.py [OPTIONS]

Options:
  --num-episodes INTEGER  Number of episodes to train on  [default: 100]
  --q-path TEXT           Path to read the q-table values from  [default:
                          q_table.pickle]
  --help                  Show this message and exit.

Similar projects

About

Simple q-learning implementation for taxi-v3 environment of Open AI gym.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages