Giter Site home page Giter Site logo

coswang1120 / mlnd-smartcab Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kamal94/mlnd-smartcab

0.0 1.0 0.0 3.69 MB

Train a smartcab to navigate a city and reach a direct destination using Q learning

Jupyter Notebook 53.03% HTML 41.93% Python 5.04%

mlnd-smartcab's Introduction

Building a smart A.I. cab

Machine Learning Engineer Nanodegree - Reinforcement Learning

This project builds a smart cab that can navigate safely and reliably in a city that has other driving agents and a regular US-based traffic system. The project leverages Q-learning as a method of training for the cab. The cab attempts many trials and earns rewards relative to the legality and efficiency of its steps and eventual destination.

Install

This project requires Python 2.7 with the pygame library installed

Code

The Q-learning 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.

Run

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 python -m smartcab.agent

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

Techniques and concepts used

Several techniques and concepts are used in this program, including

  • Machine Learning
  • Q-Learning
  • State mapping
  • numpy
  • learning rate
  • logistic decline of trial rate

!

mlnd-smartcab's People

Contributors

kamal94 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.