personalized ml

18
Introduction in Machine Learning - Personalizing with ML

Upload: angelos-kapsimanis

Post on 15-Apr-2017

83 views

Category:

Data & Analytics


0 download

TRANSCRIPT

Page 1: Personalized ml

Introduction in Machine Learning - Personalizing

with ML

Page 2: Personalized ml

What is Machine Learning?

“A computer program is said to learn from experience E with respect to some class of tasks T and performance measure P, if its performance at tasks in T, as measured by P, improves with experience E.”

-- Tom Mitchell, Carnegie Mellon University

Page 3: Personalized ml

A Spam Filter Application

E = The experience of classifying mail as spam or not spam.

T = The task of classifying emails (by subject, spam - not spam,

sender, ….), in our case whether it’s spam or not.

P = The probability that a mail is spam.

Page 4: Personalized ml

So the goal in (nearly) all ML applications is...

For a function that predicts a quantity Y as , where epsilon is the random error we try to minimize the difference between the predicted and the real real value of Y:

Page 5: Personalized ml

Getting our hands dirty with Linear Regression

http://bit.ly/28Zv65R

Page 6: Personalized ml

Prediction vs Classification

Prediction: Quantitative answers, predict a value of a continuous variable (height, weight, mileage, Click-through Rate, …)

Classification: Qualitative answers, find what is the observation you are looking at (a dog or a cat, span or not spam, dog breed, ….)

Page 7: Personalized ml

Classifying animals by their specie

Page 8: Personalized ml

Lets try Logistic Regression

http://bit.ly/29hSr1P

Page 9: Personalized ml

What is a neuron?

Page 10: Personalized ml

How many of them we have in our heads?

Page 11: Personalized ml

Answer

~86 billions!

Source and interesting read: http://bit.ly/1VSF5MK

Page 12: Personalized ml

And the Homo Sapien’s answer: The artificial neuron!

Page 13: Personalized ml

http://bit.ly/28Y93ef

Now let’s write one!

Page 14: Personalized ml

A neural network with multiple levels of features (intermediate processing layers)

What is Deep Learning

Page 15: Personalized ml

We can also optimize the structure of every layer, the transfer function, the activation function φ, the thresholds θ and much more.

Deep Learning is not limited in number of layers

Page 16: Personalized ml

http://bit.ly/28ZiM49

It’s time to go deep

Page 17: Personalized ml

Use Keras to train a network that classifies your photos against another person’s.

Homework

Page 18: Personalized ml

If you want to learn more:

Thank you for your time and effort!