/smartcab

A reinforcement learning demo where a smartcab learns to "drive" itself

Primary LanguagePython

Train a smartcab how to drive

A reinforcement learning demo.

Part of the Udacity Machine Learning Engineer Nanodegree program.

A fully trained agent in action

Note: the smartcab is the red car.

Demo GIF

Install

This project requires Python 2.7 with the pygame library installed:

https://www.pygame.org/wiki/GettingStarted

Run

Make sure you are in the top-level smartcab directory. Then run:

python smartcab/agent.py

OR:

python -m smartcab.agent

Develop

Open agent.py and implement LearningAgent.