Code Monkey home page Code Monkey logo

carnd-t3-prediction-naivebayes's Introduction

CarND-T3-Prediction-NaiveBayes

Udacity CarND Term3 3. Prediction exercise implementing naive Bayes.

Status report:

 X_train number of elements 750
 X_train element size 4
 Y_train number of elements 750
 X_test number of elements 250
 X_test element size 4
 Y_test number of elements 250
 **You got 84.80000 correct**

Features extracted:

  • Feature 1: even occuring probability:
 p_left=0.28533, p_keep=0.42133, p_right=0.29333
  • Feature 2: offset from road center. Notice keep deviation is really small besides its small offset.
 left_d_offset_ave=0.73940, keep_d_offset_ave=0.17360, right_d_offset_ave=0.71776
 left_d_offset_dev=0.30399, keep_d_offset_dev=0.09271, right_d_offset_dev=0.39838
  • Feature 3: d_dot be negative/left, almost zero/keep, positive/right.
 left_d_dot_ave=-0.96709, keep_d_dot_ave=0.00581, right_d_dot_ave=0.95402
 left_d_dot_dev=0.43994, keep_d_dot_dev=0.02827, right_d_dot_dev=0.41841

Theory

  • Prediction can be done using Gaussian Naive Bayes method.
  • Use Gaussian distribution to emulate the probability. Need to get u and sigma of each feature.
    //      u = average over all same labelled data
    //      sigma^2 = sum((x_i - u)^2)/N

carnd-t3-prediction-naivebayes's People

Contributors

jinchenglee avatar

Watchers

 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.