Skip to content

Latest commit

 

History

History
19 lines (11 loc) · 726 Bytes

README.md

File metadata and controls

19 lines (11 loc) · 726 Bytes

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