Building a Naive Bayes classifier

A Naive Bayes classifier employs Bayes' theorem to construct a supervised model.