Please turn off your webcam. If you are joining from Mobile device - - PowerPoint PPT Presentation

please turn off your webcam if you are joining from
SMART_READER_LITE
LIVE PREVIEW

Please turn off your webcam. If you are joining from Mobile device - - PowerPoint PPT Presentation

Please turn off your webcam. If you are joining from Mobile device make sure you click on Join via Device Audio We are waiting for other participants to join. Thank you for your patience! Mihir Thakkar Founder and Instructor


slide-1
SLIDE 1

Please turn off your webcam. If you are joining from Mobile device make sure you click on Join via Device Audio We are waiting for other participants to join. Thank you for your patience!

slide-2
SLIDE 2

Mihir Thakkar Founder and Instructor hello@codeheroku.com

slide-3
SLIDE 3

SESSION OBJECTIVES

  • Quick Recap
  • Categories of ML Algorithms
  • Build a Naive Bayes

Classifier

slide-4
SLIDE 4

Supervised Machine Learning

House Size (Sq feet) Location Age (years) Prize (Lakh Rs) 500 Mumbai 2 70 1500 Pune 3 100 2000 Banglore 4 60 1000 Mumbai 2 ? 3000 Pune 10 ?

Training Data Test Data Features

slide-5
SLIDE 5

Linear Regression

E.g. Predict the score of a student based on number of hours studied

90 60 30 2 4 6 8 10 12 Predicted Score for 10 hours studied = 60 Hours Studied Score

Create a Model

Error

y = M * x + B

slide-6
SLIDE 6

Categories of Machine Learning Algorithms

Discriminative Generative

E.g. Linear Regression E.g. Naive Bayes Classifier

Movie Time IMDB Rating Movie Time IMDB Rating Like Dislike

slide-7
SLIDE 7

Naive Bayes Algorithm

slide-8
SLIDE 8

Naive Bayes Algorithm

slide-9
SLIDE 9

Why is Naive Bayes, called Naive?

slide-10
SLIDE 10

Advantages of Naive Bayes

  • Simple and Easy to

Implement

  • Executes Quickly
  • Scales for Real-time Use

Cases and Massive Data Sets

slide-11
SLIDE 11

QUIZ

Naive Bayes Algorithm is best suitable for cases where: 1. Speed of algorithm is critical 2. Accuracy of classification is critical

slide-12
SLIDE 12

Setup Environment

http://www.codeheroku.com/post?name=Python%20Libraries%20Installation

pip install numpy matplotlib pandas scikit-learn scipy http://www.codeheroku.com/static/workshop/code/supervised-ml/naive-bayes. zip

slide-13
SLIDE 13

Ham or Spam Email Classification

http://www.codeheroku.com/static/workshop/hw/supervised-ml/spam.csv

slide-14
SLIDE 14

Thank you!

Your feedback means a lot

https://www.facebook.com/codeheroku/reviews/

slide-15
SLIDE 15