Git Product home page Git Product logo

car-alarm-trust's Introduction

Car Alarm Trust

This project measures the effectiveness of an alarm system used to warn drivers of an impending collision. This problem is treated as a Reinforcement Learning problem. The state, actions, and rewards are designed based on an ideal outcome of a collision detection and warning system. The data for this problem is taken from Fatality Analysis Reporting System (FARS), maintained by National Highway Traffic Safety Administration. The algorithms used are SARSA, and Q_learning. This project measures the effectiveness of an alarm in 2 settings - Consistent (alarm is on only when there is a collision), and Inconsistent (alarm is sounded randomly). This project effectively shows that Reinforcement Learning can be used to tackle this problem, with the data supplied from a car simluator in the future.

A more detailed report is present here - Project Report

Execution instructions:

  1. Clone/download the project in a desired location
  2. cd Car_alarm_trust
  3. export PYTHONPATH="${PYTHONPATH}:directory/where/Car_alarm_trust/is/placed"
  4. python common/run_trainer.py <algorithm_option> <num_jobs> <alarm_consistency>

algorithm_option: 0 or 1 to indicate the algorithm, which is SARSA or Q-Learning respectively <num_jobs>: integer value >= 1 to indicate the number of parallel jobs to run alarm_consistency: 0 or 1 to indicate the alarm consistency, which is False or True respectively

Details about the code:

  1. Language: Python 2.7
  2. Libraries: Numpy (for fast mathematical operations), Matplotlib (for graph plots), joblib (for parallel runs)

car-alarm-trust's People

Contributors

adityanshastry avatar

Watchers

James Cloos avatar  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.