Skip to Content
Grokking Machine Learning
book

Grokking Machine Learning

by Luis Serrano
December 2021
Intermediate to advanced
512 pages
15h 23m
English
Manning Publications
Content preview from Grokking Machine Learning

8 Using probability to its maximum: The naive Bayes model

In this chapter

  • what is Bayes theorem
  • dependent and independent events
  • the prior and posterior probabilities
  • calculating conditional probabilities based on events
  • using the naive Bayes model to predict whether an email is spam or ham, based on the words in the email
  • coding the naive Bayes algorithm in Python

Naive Bayes is an important machine learning model used for classification. The naive Bayes model is a purely probabilistic model, which means the prediction is a number between 0 and 1, indicating the probability that a label is positive. The main component of the naive Bayes model ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Hands-On Machine Learning with Scikit-Learn and PyTorch

Hands-On Machine Learning with Scikit-Learn and PyTorch

Aurélien Géron
Machine Learning with PyTorch and Scikit-Learn

Machine Learning with PyTorch and Scikit-Learn

Sebastian Raschka, Yuxi (Hayden) Liu, Vahid Mirjalili

Publisher Resources

ISBN: 9781617295911Supplemental ContentPublisher SupportOtherPublisher WebsiteSupplemental ContentErrata PagePurchase Link