510 likes | 2.05k Views
** Machine Learning Training with Python: https://www.edureka.co/python ** <br>This Edureka tutorial will provide you with a detailed and comprehensive knowledge of the Naive Bayes Classifier Algorithm in python. At the end of the video, you will learn from a demo example on Naive Bayes. Below are the topics covered in this tutorial: <br><br>1. What is Naive Bayes? <br>2. Bayes Theorem and its use <br>3. Mathematical Working of Naive Bayes <br>4. Step by step Programming in Naive Bayes <br>5. Prediction Using Naive Bayes <br><br>Check out our playlist for more videos: http://bit.ly/2taym8X
E N D
PYSPARK CERTIFICATION TRAINING www.edureka.co/pyspark-certification-training
Naive Bayes PYSPARK CERTIFICATION TRAINING www.edureka.co/pyspark-certification-training
Today’s Today’s Training Topics Training Topics ❖ What is Naïve Bayes? ❖ Bayes Theorem and it’s Use ❖ Mathematical working of Naïve Bayes ❖ Step by Step Programming Naïve Bayes ❖ Prediction using Naïve Bayes PYSPARK CERTIFICATION TRAINING www.edureka.co/pyspark-certification-training
What is Naïve Bayes ? What is Naïve Bayes ? PYSPARK CERTIFICATION TRAINING www.edureka.co/pyspark-certification-training
What is Naïve Bayes ? What is Naïve Bayes ? Naive Bayes is a simple but surprisingly powerful algorithm for predictive modeling. Bayes PYSPARK CERTIFICATION TRAINING www.edureka.co/pyspark-certification-training
Bayes’ Theorem Bayes’ Theorem Given a hypothesis H and evidence E , Bayes' theorem states that the relationship between the probability of the hypothesis before getting the evidence P(H) and the probability of the hypothesis after getting the evidence P(H|E) is P(H|E) = P(E|H).P(H) P(E) PYSPARK CERTIFICATION TRAINING www.edureka.co/pyspark-certification-training
Bayes’ Theorem Example Bayes’ Theorem Example PYSPARK CERTIFICATION TRAINING www.edureka.co/pyspark-certification-training
Bayes’ Theorem Example Bayes’ Theorem Example P(King) = 4/52 =1/13 PYSPARK CERTIFICATION TRAINING www.edureka.co/pyspark-certification-training
Bayes’ Theorem Example Bayes’ Theorem Example P(King) = 4/52 =1/13 P(King|Face) = P(Face|King).P(King) P(Face) PYSPARK CERTIFICATION TRAINING www.edureka.co/pyspark-certification-training
Bayes’ Theorem Example Bayes’ Theorem Example P(King) = 4/52 =1/13 P(King|Face) = P(Face|King).P(King) P(Face) P(Face|King) = 1 PYSPARK CERTIFICATION TRAINING www.edureka.co/pyspark-certification-training
Bayes’ Theorem Example Bayes’ Theorem Example P(King) = 4/52 =1/13 P(King|Face) = P(Face|King).P(King) P(Face) P(Face|King) = 1 P(Face) =12/52 = 3/13 PYSPARK CERTIFICATION TRAINING www.edureka.co/pyspark-certification-training
Bayes’ Theorem Example Bayes’ Theorem Example P(King) = 4/52 =1/13 P(King|Face) = P(Face|King).P(King) P(Face) = 1.(1/13) = 1/3 3/13 P(Face|King) = 1 P(Face) =12/52 = 3/13 PYSPARK CERTIFICATION TRAINING www.edureka.co/pyspark-certification-training
Bayes’ Theorem Proof Bayes’ Theorem Proof P(A|B) = P(A∩B) P(B) P(B|A) = P(B∩A) P(A∩B) = P(A|B).P(A) = P(B|A).P(B) P(A) = P(A|B) = P(B|A).P(B) P(A) PYSPARK CERTIFICATION TRAINING www.edureka.co/pyspark-certification-training
Bayes’ Theorem Proof Bayes’ Theorem Proof Likelihood Prior How probable was our hypothesis Before observing the evidence? How probable is the evidence Given that our hypothesis is true? P(H|E) = P(E|H).P(H) P(E) Posterior Marginal How probable is the new evidence Under all possible hypothesis? How probable is our Hypothesis Given the observed evidence? (Not directly computable) PYSPARK CERTIFICATION TRAINING www.edureka.co/pyspark-certification-training
Naïve Bayes: Working PYSPARK CERTIFICATION TRAINING PYTHON CERTIFICATION TRAINING www.edureka.co/python www.edureka.co/pyspark-certification-training
Classification Steps Classification Steps PYSPARK CERTIFICATION TRAINING www.edureka.co/pyspark-certification-training
Classification Steps Classification Steps PYSPARK CERTIFICATION TRAINING www.edureka.co/pyspark-certification-training
Classification Steps Classification Steps PYSPARK CERTIFICATION TRAINING www.edureka.co/pyspark-certification-training
Classification Steps Classification Steps PYSPARK CERTIFICATION TRAINING www.edureka.co/pyspark-certification-training
Classification Steps Classification Steps PYSPARK CERTIFICATION TRAINING www.edureka.co/pyspark-certification-training
Industrial Use Of Naïve Bayes PYSPARK CERTIFICATION TRAINING PYTHON CERTIFICATION TRAINING www.edureka.co/python www.edureka.co/pyspark-certification-training
National International Sports NEWS Media Categorization Travel & Lifestyle Stock Market Politics Finance PYSPARK CERTIFICATION TRAINING PYTHON CERTIFICATION TRAINING www.edureka.co/python www.edureka.co/pyspark-certification-training
SPAM Filtering PYSPARK CERTIFICATION TRAINING PYTHON CERTIFICATION TRAINING www.edureka.co/python www.edureka.co/pyspark-certification-training
OBJECT & FACE Recognition PYSPARK CERTIFICATION TRAINING PYTHON CERTIFICATION TRAINING www.edureka.co/python www.edureka.co/pyspark-certification-training
MEDICAL Diagnosis PYSPARK CERTIFICATION TRAINING PYTHON CERTIFICATION TRAINING www.edureka.co/python www.edureka.co/pyspark-certification-training
WEATHER Prediction PYSPARK CERTIFICATION TRAINING PYTHON CERTIFICATION TRAINING www.edureka.co/python www.edureka.co/pyspark-certification-training
Types of Naïve Bayes Gaussian Multinomial Bernoulli PYSPARK CERTIFICATION TRAINING PYTHON CERTIFICATION TRAINING www.edureka.co/python www.edureka.co/pyspark-certification-training
Steps Involved in Naïve Bayes PYSPARK CERTIFICATION TRAINING PYTHON CERTIFICATION TRAINING www.edureka.co/python www.edureka.co/pyspark-certification-training
PYSPARK CERTIFICATION TRAINING PYTHON CERTIFICATION TRAINING www.edureka.co/python www.edureka.co/pyspark-certification-training
Step1: Handling Data Step1: Handling Data PYSPARK CERTIFICATION TRAINING www.edureka.co/pyspark-certification-training
Step2: Summarizing Data Step2: Summarizing Data PYSPARK CERTIFICATION TRAINING www.edureka.co/pyspark-certification-training
Step3: Making A Prediction Step3: Making A Prediction PYSPARK CERTIFICATION TRAINING www.edureka.co/pyspark-certification-training
Step4: Making All the Predictions Step4: Making All the Predictions PYSPARK CERTIFICATION TRAINING www.edureka.co/pyspark-certification-training
Step5: Evaluate Accuracy Step5: Evaluate Accuracy PYSPARK CERTIFICATION TRAINING www.edureka.co/pyspark-certification-training
Step6: Tying all Together Step6: Tying all Together PYSPARK CERTIFICATION TRAINING www.edureka.co/pyspark-certification-training