a naive Bayes classifier written in JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
images
js
.gitignore
README.md
scottish-english-example.html

README.md

Naive Bayes classifier implemented in JavaScript

Classify a person as English or Scottish based on the following:

  • likes shortbread
  • likes lager
  • drinks whiskey
  • eats porridge
  • watched England play football

Other Resources

Bayes' theorem on Wikipedia: http://en.wikipedia.org/wiki/Bayes%27_theorem

naive Bayes classifier on Wikipedia: http://en.wikipedia.org/wiki/Naive_Bayes_classifier

Bayes Theorem explained by Student Dave in hipster terms on YouTube: http://www.youtube.com/watch?v=xE3Gjhs2P4k

Matlab example of Bayes' theorem applied to a set of training data: http://www.inf.ed.ac.uk/teaching/courses/lfd/lectures/lfd_2005_naive.pdf