Skip to content

Latest commit

 

History

History
41 lines (30 loc) · 1.23 KB

README.md

File metadata and controls

41 lines (30 loc) · 1.23 KB

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