1 / 37

Naive Bayes Classifier in Python | Naive Bayes Algorithm | Machine Learning Algorithm | Edureka

** 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

EdurekaIN
Download Presentation

Naive Bayes Classifier in Python | Naive Bayes Algorithm | Machine Learning Algorithm | Edureka

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. PYSPARK CERTIFICATION TRAINING www.edureka.co/pyspark-certification-training

  2. Naive Bayes PYSPARK CERTIFICATION TRAINING www.edureka.co/pyspark-certification-training

  3. 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

  4. What is Naïve Bayes ? What is Naïve Bayes ? PYSPARK CERTIFICATION TRAINING www.edureka.co/pyspark-certification-training

  5. 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

  6. 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

  7. Bayes’ Theorem Example Bayes’ Theorem Example PYSPARK CERTIFICATION TRAINING www.edureka.co/pyspark-certification-training

  8. Bayes’ Theorem Example Bayes’ Theorem Example P(King) = 4/52 =1/13 PYSPARK CERTIFICATION TRAINING www.edureka.co/pyspark-certification-training

  9. 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

  10. 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

  11. 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

  12. 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

  13. 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

  14. 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

  15. Naïve Bayes: Working PYSPARK CERTIFICATION TRAINING PYTHON CERTIFICATION TRAINING www.edureka.co/python www.edureka.co/pyspark-certification-training

  16. Classification Steps Classification Steps PYSPARK CERTIFICATION TRAINING www.edureka.co/pyspark-certification-training

  17. Classification Steps Classification Steps PYSPARK CERTIFICATION TRAINING www.edureka.co/pyspark-certification-training

  18. Classification Steps Classification Steps PYSPARK CERTIFICATION TRAINING www.edureka.co/pyspark-certification-training

  19. Classification Steps Classification Steps PYSPARK CERTIFICATION TRAINING www.edureka.co/pyspark-certification-training

  20. Classification Steps Classification Steps PYSPARK CERTIFICATION TRAINING www.edureka.co/pyspark-certification-training

  21. Industrial Use Of Naïve Bayes PYSPARK CERTIFICATION TRAINING PYTHON CERTIFICATION TRAINING www.edureka.co/python www.edureka.co/pyspark-certification-training

  22. 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

  23. SPAM Filtering PYSPARK CERTIFICATION TRAINING PYTHON CERTIFICATION TRAINING www.edureka.co/python www.edureka.co/pyspark-certification-training

  24. OBJECT & FACE Recognition PYSPARK CERTIFICATION TRAINING PYTHON CERTIFICATION TRAINING www.edureka.co/python www.edureka.co/pyspark-certification-training

  25. MEDICAL Diagnosis PYSPARK CERTIFICATION TRAINING PYTHON CERTIFICATION TRAINING www.edureka.co/python www.edureka.co/pyspark-certification-training

  26. WEATHER Prediction PYSPARK CERTIFICATION TRAINING PYTHON CERTIFICATION TRAINING www.edureka.co/python www.edureka.co/pyspark-certification-training

  27. Types of Naïve Bayes Gaussian Multinomial Bernoulli PYSPARK CERTIFICATION TRAINING PYTHON CERTIFICATION TRAINING www.edureka.co/python www.edureka.co/pyspark-certification-training

  28. Steps Involved in Naïve Bayes PYSPARK CERTIFICATION TRAINING PYTHON CERTIFICATION TRAINING www.edureka.co/python www.edureka.co/pyspark-certification-training

  29. PYSPARK CERTIFICATION TRAINING PYTHON CERTIFICATION TRAINING www.edureka.co/python www.edureka.co/pyspark-certification-training

  30. Step1: Handling Data Step1: Handling Data PYSPARK CERTIFICATION TRAINING www.edureka.co/pyspark-certification-training

  31. Step2: Summarizing Data Step2: Summarizing Data PYSPARK CERTIFICATION TRAINING www.edureka.co/pyspark-certification-training

  32. Step3: Making A Prediction Step3: Making A Prediction PYSPARK CERTIFICATION TRAINING www.edureka.co/pyspark-certification-training

  33. Step4: Making All the Predictions Step4: Making All the Predictions PYSPARK CERTIFICATION TRAINING www.edureka.co/pyspark-certification-training

  34. Step5: Evaluate Accuracy Step5: Evaluate Accuracy PYSPARK CERTIFICATION TRAINING www.edureka.co/pyspark-certification-training

  35. Step6: Tying all Together Step6: Tying all Together PYSPARK CERTIFICATION TRAINING www.edureka.co/pyspark-certification-training

More Related