machine learning 101

41
Machine Learning 101 Setu Chokshi Community Technology Update 2016

Upload: setu-chokshi

Post on 12-Apr-2017

113 views

Category:

Technology


1 download

TRANSCRIPT

Page 1: Machine Learning 101

Machine Learning 101Setu ChokshiCommunity Technology Update 2016

Page 2: Machine Learning 101

Machine Learning 101

This is an introductory session and we are here to learnFeel free to ask questions at any time

Page 3: Machine Learning 101

Why?Discover reason behind success, failureUnderstand customers, productsPlan futureExperiment meaningfullyImprove performance

Run on analytics

Page 4: Machine Learning 101

Data science

Scientific method of reasoning applied to data-driven decisions

Hypothesis, experiments, facts, logical reasoning+ data engineering.

Page 5: Machine Learning 101

Data wrangling (munging), retrieval

+ storage

Data mining & machine learning

Statistics

Big data

Data scienc

e

Page 6: Machine Learning 101

Machine learning ≣ data mining

Exploresdata

Finds patterns

Predicts (scoring)

Means strictly equivalent to. Yes.

Page 7: Machine Learning 101

Tools

Page 8: Machine Learning 101

Tools & salaries

Chart from "2016 Data Science Salary Survey"

Page 9: Machine Learning 101

Examples of Machine Learning

Page 10: Machine Learning 101

How does machine learning help?There are only 5 questions that machine learning can help answer

Source: Data Science For Beginners - 5 Questions Data Science Answers by Brandon Rohrer

Page 11: Machine Learning 101

1. Is this A or B?

Is this A or B?Classification Algorithms

Page 12: Machine Learning 101

2. Is this Weird?

Is this Weid?Anomaly detection algorithms

Page 13: Machine Learning 101

3. How much? How many?How many?How much?

Regression algorithms

Page 14: Machine Learning 101

4. How is this organized?How is this organized?

Clustering algorithms

Page 15: Machine Learning 101

5. What should I do now?What should I do

now?

Reinforcement learning algorithms

Page 16: Machine Learning 101

Machine learning process and algorithms

Page 17: Machine Learning 101

How does it workAlgorithm

Your data

Computer

Your answer

=

=

=

=

Recipe

Ingredients

Blender

Smoothie

Page 18: Machine Learning 101

1. Define & initialise a model2. Train model (process cases)3. Validate model

…by scoring (making predictions) a test data set and evaluating the results

4. Use it: Explore or Deploy…visualise and study…deploy as a (web) service

5. Update and revalidate

How?

Page 19: Machine Learning 101

Cheat Sheet

http://download.microsoft.com/download/A/6/1/A613E11E-8F9C-424A-B99D-65344785C288/microsoft-machine-learning-algorithm-cheat-sheet-v6.pdf

Page 20: Machine Learning 101

Classification

Page 21: Machine Learning 101

21

ClassificationThe classification model can be implemented in several ways• Decision trees• Rules• Mathematical formulae

Page 22: Machine Learning 101

Lets build some intuition for decision treeshttp://www.r2d3.us/visual-intro-to-machine-learning-part-1/

Page 23: Machine Learning 101

Support Vector MachineDraw a line/plane to separate the variables

Page 24: Machine Learning 101

Solution….

Page 25: Machine Learning 101

…now on to Neural Networks

http://playground.tensorflow.org/

Page 26: Machine Learning 101

Anomaly Detection

Page 27: Machine Learning 101

27

Anomaly DetectionThe different types of anomaly detection schemes• Statistical based• Distance based• Model based

Page 28: Machine Learning 101

28

Lets build some intuition

Page 29: Machine Learning 101

Second Attempt

®

99.9%-ile

Page 30: Machine Learning 101

30

Exampleshttp://anomalydetection-aml.azurewebsites.net/

Page 31: Machine Learning 101

Is my algorithm any good?

Page 32: Machine Learning 101

34

Accuracy is not enough

Page 33: Machine Learning 101

35

2 metrics to rememberFALSE NEGATIVE TRUE NEGATIVE

TRUE POSITIVE

FALSEPOSITIVE

Relevant Elements

How many selected items are relevant = PRECISION

How many relevant items are Selected = RECALLSELECTED ELEMENTS

Page 34: Machine Learning 101

4 Step process to mastery

Page 35: Machine Learning 101

Step 1: Take a courseMachine Learning: Andrew NgMining Massive Datasets: Leskovec, Rajaraman, UllmanDeep learning at Oxford 2015 http://bit.ly/2ccQmnXNeural Networks for Machine Learning: G Hinton

Page 36: Machine Learning 101

Step 2: Get a book

Deep Learning: http://www.deeplearningbook.org/

Page 37: Machine Learning 101

Step 3: Do a project on KaggleBinary Classification: Titanic: Machine Learning from DisasterMulti-Class Classification: Forest Cover Type PredictionRegression with temporal component: Bike Sharing DemandBinary Classification with text data: Random Acts of PizzaSentiment Analysis: Sentiment Analysis on Movie ReviewsAudio/Video: Challenges in Representation Learning: Facial Expression Recognition ChallengeImage: The Marinexplore and Cornell University Whale Detection Challenge

Page 38: Machine Learning 101

Step 4: Keep yourself upto datePodcasts: Linear Digressions & Talking MachinesCheat sheets (Python/R/ML etc): http://bit.ly/2ccOQlu

Other resources:Interesting iPython Notebooks: http://bit.ly/2ccPEGZLearn Data Science http://learnds.com/A Few Useful Things to Know about Machine Learning http://bit.ly/2ccQNi5

Page 39: Machine Learning 101

Keep LearningYou can reach me on

Email: setu.chokshi at gmail Twitter: @setuc

Page 40: Machine Learning 101

Best Speaker Award from Soyoung Lee

Page 41: Machine Learning 101

Thank you!