Skip to content

This is the code for "Probability Theory - The Math of Intelligence #6" By Siraj Raval on Youtube

Notifications You must be signed in to change notification settings

llSourcell/naive_bayes_classifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

naive_bayes_classifier

This is the code for "Probability Theory - The Math of Intelligence #6" By Siraj Raval on Youtube

Coding Challenge - Due Date, Thursday July 27 2017 at 12 PM PST

Write your own Naive Bayes Classifer for any text dataset. Any improvements from my code in the video, (example - Using n-grams instead of counting individual words, TFIDF instead of bag of words, etc.) will be bonus points. Good luck!

Overview

This is the code for this video on Youtube by Siraj Raval as part of The Math of Intelligence course. I uses a Naive Bayes classifier to label some text as spam or not spam by training on this Kaggle dataset as training data.

Dependencies

  • numpy

Install numpy using pip

Usage

Type python naive_bayes.py to run the code.

Credits

Credits go to AlanBuzdar. I've merely created a wrapper to get people started.

About

This is the code for "Probability Theory - The Math of Intelligence #6" By Siraj Raval on Youtube

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages