Implementing Naïve Bayes algorithm

Refer to the source code provided for this chapter for implementing Naïve Bayes classifier (source code path .../chapter9/... under each of the folders for the technology).

Using Mahout

Refer to the folder .../mahout/chapter9/naivebayesexample/.

Using R

Refer to the folder .../r/chapter9/naivebayesexample/.

Using Spark

Refer to the folder .../spark/chapter9/naivebayesexample/.

Using scikit-learn

Refer to the folder .../python-scikit-learn/chapter9/naivebayesexample/.

Using Julia

Refer to the folder .../julia/chapter9/naivebayesexample/.

Get Practical Machine Learning now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.