The Naïve Bayes classifier

The Naive Bayes classifier technique is based on the Bayesian theorem and is appropriate when the dimensionality of the input is high. Although it appears to be very simple, it is technically better performed than the other classification methods.

(More information is available at http://scikit-learn.org/stable/modules/naive_bayes.html and http://sebastianraschka.com/Articles/2014_naive_bayes_1.html).

Let's take a look at the following example that shows objects in red and blue. As indicated, the objects shown in red represent the set of people who have breast cancer, and the objects shown in blue represent the set of people diagnosed positive for breast cancer. Our task is to be able to label any new data, which in this ...

Get Mastering Python Data Visualization 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.