Machine Learning - Stephan Robert€¦ · Lesson 1:Introduction to Machine Learning, Gradient...

14
02/08/2019 1 Machine Learning Stephan Robert | HEIG-Vd | Summer University 2019 Few good books (Not necessary to buy them, just download them. Free access)

Transcript of Machine Learning - Stephan Robert€¦ · Lesson 1:Introduction to Machine Learning, Gradient...

Page 1: Machine Learning - Stephan Robert€¦ · Lesson 1:Introduction to Machine Learning, Gradient Descent (cost function, many variables) Lesson 2: Linear regression, ... Lesson5:DeepNeural

02/08/2019

1

Machine Learning

Stephan Robert | HEIG-Vd | Summer University 2019

Few good books(Not necessary to buy them, just download them. Free access)

Page 2: Machine Learning - Stephan Robert€¦ · Lesson 1:Introduction to Machine Learning, Gradient Descent (cost function, many variables) Lesson 2: Linear regression, ... Lesson5:DeepNeural

02/08/2019

2

Few good books(Not necessary to buy them, just download them. Free access)

• Machine Learning, Tom Mitchell• Machine Learning, Kevin Murphy

Web page and links...Lecture slides and handouts

Documentation, links, software resources

Announcements and schedule

Email (labs)

Slides at http://www.stephan-robert.ch/teaching/machine-learning

Page 3: Machine Learning - Stephan Robert€¦ · Lesson 1:Introduction to Machine Learning, Gradient Descent (cost function, many variables) Lesson 2: Linear regression, ... Lesson5:DeepNeural

02/08/2019

3

… and links...

Kaggle.com (competitions, jobs,…)

Datascience.net

Python tutorials and books

docs.python.org/3/tutorial/index.html

wiki.python.org/moin/IntroductoryBooks

Page 4: Machine Learning - Stephan Robert€¦ · Lesson 1:Introduction to Machine Learning, Gradient Descent (cost function, many variables) Lesson 2: Linear regression, ... Lesson5:DeepNeural

02/08/2019

4

Python environment

Python release 3.6 (3.7 from July 2019)

Anaconda Navigator (Jupyter, Ipython, Spyder,…)

Python libraries

Numpy

Pandas

Matplotlib

Scikit-learn

• Scipy

• Tensorflow

• Keras

Page 5: Machine Learning - Stephan Robert€¦ · Lesson 1:Introduction to Machine Learning, Gradient Descent (cost function, many variables) Lesson 2: Linear regression, ... Lesson5:DeepNeural

02/08/2019

5

SyllabusLesson 1: Introduction to Machine Learning, Gradient Descent (cost function, many variables)

Lesson 2: Linear regression, logistic regression

Lesson 3: Support vector machines

Lesson 4: Unsupervised learning (PCA, k-means, K-nearest neighbor, classification)

Lesson 5: Deep Neural Networks

Homeworks HW 1: Gradient Descent

HW 2: Linear and logistic regression

HW 3: Support Vector Machines

HW 4: Unsupervised learning

HW 5: DNN (tentative)

Page 6: Machine Learning - Stephan Robert€¦ · Lesson 1:Introduction to Machine Learning, Gradient Descent (cost function, many variables) Lesson 2: Linear regression, ... Lesson5:DeepNeural

02/08/2019

6

Each group of students (1-2 students per group) must write their own code for the programming part. Please don’t search for answers on the web, Google, previousyears’ homeworks, etc. D0n’t post themeither!

HW 1,2,3: Group of two students (1 fromSNU + 1 from HEIG-Vd)

HW 4,5: Individual

Homeworks

Grading

• 3 homeworks- HW 1 is mandatory- 1 HW amongst HW 2,3- 1 HW amongst HW 4,5

Page 7: Machine Learning - Stephan Robert€¦ · Lesson 1:Introduction to Machine Learning, Gradient Descent (cost function, many variables) Lesson 2: Linear regression, ... Lesson5:DeepNeural

02/08/2019

7

Machine Learning is changing the world

© Emily Fox

Few videos...

• AI in the real lifehttps://www.youtube.com/watch?v=Pls_q2aQzHg

Page 8: Machine Learning - Stephan Robert€¦ · Lesson 1:Introduction to Machine Learning, Gradient Descent (cost function, many variables) Lesson 2: Linear regression, ... Lesson5:DeepNeural

02/08/2019

8

What is Machine Learning?

• Study of algorithms that improvetheir performances at some taskswith experience

Supervised learning

• Knowledge of output

Learning with the presence of an expert (e.g. Support VectorMachines, Decision Trees, Neural Networks, BayesianClassifiers,…)

Page 9: Machine Learning - Stephan Robert€¦ · Lesson 1:Introduction to Machine Learning, Gradient Descent (cost function, many variables) Lesson 2: Linear regression, ... Lesson5:DeepNeural

02/08/2019

9

Example of houses prices in Lausanne

House price predictionSupervised learning: regression

House price predictionSupervised learning

Page 10: Machine Learning - Stephan Robert€¦ · Lesson 1:Introduction to Machine Learning, Gradient Descent (cost function, many variables) Lesson 2: Linear regression, ... Lesson5:DeepNeural

02/08/2019

10

House price predictionSupervised learning

House price predictionSupervised learning

Page 11: Machine Learning - Stephan Robert€¦ · Lesson 1:Introduction to Machine Learning, Gradient Descent (cost function, many variables) Lesson 2: Linear regression, ... Lesson5:DeepNeural

02/08/2019

11

Spam filteringSupervised learning: classification

Not SpamText of email, IP Source,… Spam

input output

Other examplesSupervised learning: classification

• Sentiment analysis• Personalized medical diagnosis (multiple

outputs: flu, healthy, …)

Page 12: Machine Learning - Stephan Robert€¦ · Lesson 1:Introduction to Machine Learning, Gradient Descent (cost function, many variables) Lesson 2: Linear regression, ... Lesson5:DeepNeural

02/08/2019

12

Stock predictionSupervised learning

Depends on recent historyof stock market, newsevents, …

(Vodafone)

Unsupervised learning

• No Knowledge of output

Learning without the presenceof an expert (e.g k-means, clustering approaches ,…)

Page 13: Machine Learning - Stephan Robert€¦ · Lesson 1:Introduction to Machine Learning, Gradient Descent (cost function, many variables) Lesson 2: Linear regression, ... Lesson5:DeepNeural

02/08/2019

13

Unsupervised learning

news.google.com

Unsupervised learning

Clustering images, group as:

• Clouds• Mountains• Roads

Page 14: Machine Learning - Stephan Robert€¦ · Lesson 1:Introduction to Machine Learning, Gradient Descent (cost function, many variables) Lesson 2: Linear regression, ... Lesson5:DeepNeural

02/08/2019

14

Unsupervised learning

Other examples

• Users on Web sites (groups, activities)• Words (First names, last names, location

words, …)