Data Science from Scratch by Grus Joel
Author:Grus, Joel
Language: eng
Format: epub
Publisher: O'Reilly Media
Published: 2015-04-14T04:00:00+00:00
For example, if 50% of spam messages have the word viagra, but only 1% of nonspam messages do, then the probability that any given viagra-containing email is spam is:
A More Sophisticated Spam Filter
Imagine now that we have a vocabulary of many words . To move this into the realm of probability theory, we’ll write for the event “a message contains the word .” Also imagine that (through some unspecified-at-this-point process) we’ve come up with an estimate for the probability that a spam message contains the ith word, and a similar estimate for the probability that a nonspam message contains the ith word.
The key to Naive Bayes is making the (big) assumption that the presences (or absences) of each word are independent of one another, conditional on a message being spam or not. Intuitively, this assumption means that knowing whether a certain spam message contains the word “viagra” gives you no information about whether that same message contains the word “rolex.” In math terms, this means that:
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.
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(8303)
Azure Data and AI Architect Handbook by Olivier Mertens & Breght Van Baelen(6756)
Building Statistical Models in Python by Huy Hoang Nguyen & Paul N Adams & Stuart J Miller(6732)
Serverless Machine Learning with Amazon Redshift ML by Debu Panda & Phil Bates & Bhanu Pittampally & Sumeet Joshi(6616)
Data Wrangling on AWS by Navnit Shukla | Sankar M | Sam Palani(6402)
Driving Data Quality with Data Contracts by Andrew Jones(6343)
Machine Learning Model Serving Patterns and Best Practices by Md Johirul Islam(6108)
Learning SQL by Alan Beaulieu(5999)
Weapons of Math Destruction by Cathy O'Neil(5784)
Big Data Analysis with Python by Ivan Marin(5372)
Data Engineering with dbt by Roberto Zagni(4372)
Solidity Programming Essentials by Ritesh Modi(4021)
Time Series Analysis with Python Cookbook by Tarek A. Atwan(3882)
Pandas Cookbook by Theodore Petrou(3587)
Blockchain Basics by Daniel Drescher(3299)
Hands-On Machine Learning for Algorithmic Trading by Stefan Jansen(2909)
Feature Store for Machine Learning by Jayanth Kumar M J(2816)
Learn T-SQL Querying by Pam Lahoud & Pedro Lopes(2799)
Mastering Python for Finance by Unknown(2745)
