Skip to content

A simple implementation of Bayesian Spam Filtering

Notifications You must be signed in to change notification settings

koratkar/bayes-script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

bayes-script

As part of my ML learning project, I decided to implement Paul Graham's implementation of bayesian filtering into python.

To run anything, fill "bad.txt" with something and "good.txt" with something else, and run "naive_bayes_prob(str)" on something else, and this will predict its "badness" (just a label, not anything else)

If you want to play with this, here are some ideas:

  • use web.py to make a web based filter or predictor
  • use this as a filter on your email to find "importance"
  • use this on RSS feeds to alert you of posts you like

About

A simple implementation of Bayesian Spam Filtering

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages