Skip to content

eevirgen/naive-bayes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Naive Bayes Classifier

Not a big deal. Simple, functional Java Naive Bayes Probabilistic model implementation. Helps to compute the fit between a new observation and some previously observed data. Seems it works well enough in practice.

Sample data are obtained from Eric Meisner's Naive Bayes Classifier example:

http://www.inf.u-szeged.hu/~ormandi/ai2/06-naiveBayes-example.pdf

And formula :

alt tag

Doesn't include "m-estimate of probability", means you're welcome to modify it to work with exact numbers like "height", "width" etc.

Source code is commented enough, I hope it helps someone somewhere.

erkut evirgen

About

Simple Naive Bayes Classifier

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages