Summary
In this chapter, we introduced our first generative model, Naive Bayes. We used Bayes' theorem to calculate the probability that a patient who tests positive for a disease actually has the disease, using our knowledge of the test's performance and related conditions. We compared generative and discriminative models, used scikit-learn to train a Naive Bayes classifier, and compared its performance with that of a discriminative model.