Giter Club home page Giter Club logo

crash-risk-calculator's Introduction

Crash Risk Calculator

Calculates the risk of an accident from 3 basic inputs.

Works in Chrome, Safari, Firefox, and soon in Edge (does not work, yet, as tf.data uses https://developer.mozilla.org/en-US/docs/Web/API/TextDecoder which is not support in Edge, tensorflow/tfjs#1395)

App hosted here: https://djcordhose.github.io/crash-risk-calculator/

Source code: https://github.com/DJCordhose/crash-risk-calculator

Main source for training: https://github.com/DJCordhose/crash-risk-calculator/blob/master/train.js

Main source for prediction: https://github.com/DJCordhose/crash-risk-calculator/blob/master/calculator.js

Data

The data set consists of 1500 samples for three categories, 500 samples each:

  • 0 - red: many accidents
  • 1 - green: few or no accidents
  • 2 - yellow: in the middle

You have three variables to infer the category from

  1. Top speed of car
  2. Age of driver
  3. Miles per year

The data: https://raw.githubusercontent.com/DJCordhose/deep-learning-crash-course-notebooks/master/data/insurance-customers-1500.csv

Overview

You can use https://pair-code.github.io/facets/ to bucketize the data using speed and age

which already gives you a good overview how you would score each bucket.

crash-risk-calculator's People

Contributors

djcordhose avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

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