Machine Learning for OpenCV 4 by Aditya Sharma
Author:Aditya Sharma [Aditya Sharma]
Language: eng
Format: epub
Tags: COM012050 - COMPUTERS / Image Processing, COM051360 - COMPUTERS / Programming Languages / Python, COM004000 - COMPUTERS / Intelligence (AI) and Semantics
Publisher: Packt
Published: 2019-09-06T14:46:28+00:00
Implementing a Spam Filter with Bayesian Learning
Before we get to grips with advanced topics, such as cluster analysis, deep learning, and ensemble models, let's turn our attention to a much simpler model that we have overlooked so far: the Naive Bayes classifier.
Naive Bayes classifiers have their roots in Bayesian inference, named after the famed statistician and philosopher Thomas Bayes (1701-1761). Bayes' theorem famously describes the probability of an event based on prior knowledge of conditions that might lead to the event. We can use Bayes' theorem to build a statistical model that not only can classify data but can also provide us with an estimate of how likely it is that our classification is correct. In our case, we can use Bayesian inference to dismiss an email as spam with high confidence and to determine the probability of a woman having breast cancer, given a positive screening test.
We have now gained enough experience with the mechanics of implementing machine learning methods, and so we should no longer be afraid to try and understand the theory behind them. Don't worry, we won't write a book on it, but we need some understanding of the theory to appreciate a model's inner workings. After that, I am sure you will find that Bayesian classifiers are easy to implement, are computationally efficient, and tend to perform quite well on relatively small datasets. In this chapter, we will understand the Naive Bayes classifier and then implement our first Bayesian classifier. We will then classify emails using the Naive Bayes classifier.
In this chapter, we will cover the following topics:
Understanding the Naive Bayes classifier
Implementing your first Bayesian classifier
Classifying emails using the Naive Bayes classifier
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Computer Vision & Pattern Recognition | Expert Systems |
Intelligence & Semantics | Machine Theory |
Natural Language Processing | Neural Networks |
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(7849)
Hadoop in Practice by Alex Holmes(5659)
Jquery UI in Action : Master the concepts Of Jquery UI: A Step By Step Approach by ANMOL GOYAL(5512)
Life 3.0: Being Human in the Age of Artificial Intelligence by Tegmark Max(4502)
Functional Programming in JavaScript by Mantyla Dan(3721)
The Age of Surveillance Capitalism by Shoshana Zuboff(3420)
Big Data Analysis with Python by Ivan Marin(2994)
Blockchain Basics by Daniel Drescher(2889)
The Rosie Effect by Graeme Simsion(2707)
WordPress Plugin Development Cookbook by Yannick Lefebvre(2596)
Hands-On Machine Learning for Algorithmic Trading by Stefan Jansen(2509)
Applied Predictive Modeling by Max Kuhn & Kjell Johnson(2478)
Dawn of the New Everything by Jaron Lanier(2436)
Test-Driven Development with Java by Alan Mellor(2349)
The Art Of Deception by Kevin Mitnick(2297)
Data Augmentation with Python by Duc Haba(2199)
Rapid Viz: A New Method for the Rapid Visualization of Ideas by Kurt Hanks & Larry Belliston(2195)
Human Dynamics Research in Smart and Connected Communities by Shih-Lung Shaw & Daniel Sui(2177)
The Infinite Retina by Robert Scoble Irena Cronin(2163)