Skip to content

Nazanin1369/smartcab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reinforcement Learning

Train a Smartcab How to Drive

View results here

Install

This project requires Python 2.7 with the pygame library installed

Code

Template code is provided in the smartcab/agent.py python file. Additional supporting python code can be found in smartcab/enviroment.py, smartcab/planner.py, and smartcab/simulator.py. Supporting images for the graphical user interface can be found in the images folder.

A Jupyter notebook has been added to the project and may be stepped through as a live version of the report. The agent.py is exported directly from this notebook.

Run

step throught the 'agent.ipynb' file to see the code inline with the project report.

Alternativly, to see the game gui: In a terminal or command window, navigate to the top-level project directory smartcab/ (that contains this README) and run one of the following commands:

python smartcab/agent.py

OR

python -m smartcab.agent

This will run the agent.py file and execute your agent code.