cs480/680 machine learning lecture 1: may 6 , 2019 · 2019. 8. 14. · cs480/680 machine learning...

24
CS480/680 Machine Learning Lecture 1: May 6 th , 2019 Course Introduction Pascal Poupart CS480/680 Spring 2019 Pascal Poupart 1 University of Waterloo

Upload: others

Post on 13-Oct-2020

2 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: CS480/680 Machine Learning Lecture 1: May 6 , 2019 · 2019. 8. 14. · CS480/680 Machine Learning Lecture 1: May 6th, 2019 Course Introduction Pascal Poupart University of Waterloo

CS480/680 Machine LearningLecture 1: May 6th, 2019

Course IntroductionPascal Poupart

CS480/680 Spring 2019 Pascal Poupart 1University of Waterloo

Page 2: CS480/680 Machine Learning Lecture 1: May 6 , 2019 · 2019. 8. 14. · CS480/680 Machine Learning Lecture 1: May 6th, 2019 Course Introduction Pascal Poupart University of Waterloo

CS480/680 Spring 2019 Pascal Poupart 2

Outline

• Introduction to Machine Learning• Course website and logistics

University of Waterloo

Page 3: CS480/680 Machine Learning Lecture 1: May 6 , 2019 · 2019. 8. 14. · CS480/680 Machine Learning Lecture 1: May 6th, 2019 Course Introduction Pascal Poupart University of Waterloo

CS480/680 Spring 2019 Pascal Poupart 3

Instructor

University of Waterloo

Pascal Poupart

15+ years experience in Machine Learning

Professor

Principal Researcher

Page 4: CS480/680 Machine Learning Lecture 1: May 6 , 2019 · 2019. 8. 14. · CS480/680 Machine Learning Lecture 1: May 6th, 2019 Course Introduction Pascal Poupart University of Waterloo

CS480/680 Spring 2019 Pascal Poupart 4

RBC Borealis AI

• Research institute funded by RBC

• 5 research centers: – Montreal, Toronto, Waterloo,

Edmonton and Vancouver

• 80 researchers: – Integrated (applied & fundamental) research model

• ML, RL, NLP, computer vision, private AI, fintech

• We are hiring!

University of Waterloo

Page 5: CS480/680 Machine Learning Lecture 1: May 6 , 2019 · 2019. 8. 14. · CS480/680 Machine Learning Lecture 1: May 6th, 2019 Course Introduction Pascal Poupart University of Waterloo

CS480/680 Spring 2019 Pascal Poupart 5

Machine Learning

• Traditional computer science– Program computer for every task

• New paradigm– Provide examples to machine– Machine learns to accomplish a task based on the

examples

University of Waterloo

Page 6: CS480/680 Machine Learning Lecture 1: May 6 , 2019 · 2019. 8. 14. · CS480/680 Machine Learning Lecture 1: May 6th, 2019 Course Introduction Pascal Poupart University of Waterloo

Definitions

• Arthur Samuel (1959): Machine learning is the field

of study that gives computers the ability to learn

without being explicitly programmed.

• Tom Mitchell (1998): 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.

CS480/680 Spring 2019 Pascal Poupart 6University of Waterloo

Page 7: CS480/680 Machine Learning Lecture 1: May 6 , 2019 · 2019. 8. 14. · CS480/680 Machine Learning Lecture 1: May 6th, 2019 Course Introduction Pascal Poupart University of Waterloo

Three Categories

Supervised learning

Reinforcement learning

Unsupervised learning

CS480/680 Spring 2019 Pascal Poupart 7University of Waterloo

Page 8: CS480/680 Machine Learning Lecture 1: May 6 , 2019 · 2019. 8. 14. · CS480/680 Machine Learning Lecture 1: May 6th, 2019 Course Introduction Pascal Poupart University of Waterloo

Supervised Learning

• Example: digit recognition (postal code)

• Simplest approach: memorization

CS480/680 Spring 2019 Pascal Poupart 8University of Waterloo

Page 9: CS480/680 Machine Learning Lecture 1: May 6 , 2019 · 2019. 8. 14. · CS480/680 Machine Learning Lecture 1: May 6th, 2019 Course Introduction Pascal Poupart University of Waterloo

Supervised Learning

• Nearest neighbour:

CS480/680 Spring 2019 Pascal Poupart 9University of Waterloo

Page 10: CS480/680 Machine Learning Lecture 1: May 6 , 2019 · 2019. 8. 14. · CS480/680 Machine Learning Lecture 1: May 6th, 2019 Course Introduction Pascal Poupart University of Waterloo

More Formally

• Inductive learning (for supervised learning):

– Given a training set of examples of the form (", $("))• " is the input, $(") is the output

– Return a function ℎ that approximates $• ℎ is called the hypothesis

CS480/680 Spring 2019 Pascal Poupart 10University of Waterloo

Page 11: CS480/680 Machine Learning Lecture 1: May 6 , 2019 · 2019. 8. 14. · CS480/680 Machine Learning Lecture 1: May 6th, 2019 Course Introduction Pascal Poupart University of Waterloo

Prediction

• Find function ℎ that fits " at instances #

CS480/680 Spring 2019 Pascal Poupart 11University of Waterloo

Page 12: CS480/680 Machine Learning Lecture 1: May 6 , 2019 · 2019. 8. 14. · CS480/680 Machine Learning Lecture 1: May 6th, 2019 Course Introduction Pascal Poupart University of Waterloo

Prediction

• Find function ℎ that fits " at instances #

CS480/680 Spring 2019 Pascal Poupart 12University of Waterloo

Page 13: CS480/680 Machine Learning Lecture 1: May 6 , 2019 · 2019. 8. 14. · CS480/680 Machine Learning Lecture 1: May 6th, 2019 Course Introduction Pascal Poupart University of Waterloo

Prediction

• Find function ℎ that fits " at instances #

CS480/680 Spring 2019 Pascal Poupart 13University of Waterloo

Page 14: CS480/680 Machine Learning Lecture 1: May 6 , 2019 · 2019. 8. 14. · CS480/680 Machine Learning Lecture 1: May 6th, 2019 Course Introduction Pascal Poupart University of Waterloo

Prediction

• Find function ℎ that fits " at instances #

CS480/680 Spring 2019 Pascal Poupart 14University of Waterloo

Page 15: CS480/680 Machine Learning Lecture 1: May 6 , 2019 · 2019. 8. 14. · CS480/680 Machine Learning Lecture 1: May 6th, 2019 Course Introduction Pascal Poupart University of Waterloo

Prediction

• Find function ℎ that fits " at instances #

CS480/680 Spring 2019 Pascal Poupart 15University of Waterloo

Page 16: CS480/680 Machine Learning Lecture 1: May 6 , 2019 · 2019. 8. 14. · CS480/680 Machine Learning Lecture 1: May 6th, 2019 Course Introduction Pascal Poupart University of Waterloo

Generalization

• Key: a good hypothesis will generalize well (i.e. predict unseen examples correctly)

• Ockham’s razor: prefer the simplest hypothesis consistent with data

CS480/680 Spring 2019 Pascal Poupart 16University of Waterloo

Page 17: CS480/680 Machine Learning Lecture 1: May 6 , 2019 · 2019. 8. 14. · CS480/680 Machine Learning Lecture 1: May 6th, 2019 Course Introduction Pascal Poupart University of Waterloo

ImageNet Classification

• 1000 classes• 1 million images

• Deep neural networks (supervised learning)

CS480/680 Spring 2019 Pascal Poupart 17University of Waterloo

Page 18: CS480/680 Machine Learning Lecture 1: May 6 , 2019 · 2019. 8. 14. · CS480/680 Machine Learning Lecture 1: May 6th, 2019 Course Introduction Pascal Poupart University of Waterloo

Unsupervised Learning

• Output is not given as part of training set• Find model that explains the data – E.g. clustering, compressed representation, features,

generative model

CS480/680 Spring 2019 Pascal Poupart 18University of Waterloo

Page 19: CS480/680 Machine Learning Lecture 1: May 6 , 2019 · 2019. 8. 14. · CS480/680 Machine Learning Lecture 1: May 6th, 2019 Course Introduction Pascal Poupart University of Waterloo

Unsupervised Feature Generation

• Encoder trained on large number of images

CS480/680 Spring 2019 Pascal Poupart 19University of Waterloo

Page 20: CS480/680 Machine Learning Lecture 1: May 6 , 2019 · 2019. 8. 14. · CS480/680 Machine Learning Lecture 1: May 6th, 2019 Course Introduction Pascal Poupart University of Waterloo

CS480/680 Spring 2019 Pascal Poupart 20

Reinforcement Learning

Agent

Environment

StateReward Action

Goal: Learn to choose actions that maximize rewards

University of Waterloo

Page 21: CS480/680 Machine Learning Lecture 1: May 6 , 2019 · 2019. 8. 14. · CS480/680 Machine Learning Lecture 1: May 6th, 2019 Course Introduction Pascal Poupart University of Waterloo

CS480/680 Spring 2019 Pascal Poupart 21

Animal Psychology

• Reinforcements used to train animals• Negative reinforcements:– Pain and hunger

• Positive reinforcements:– Pleasure and food

• Let’s do the same with computers!– Rewards: numerical signal indicating how good actions are

• E.g., game win/loss, money, time, etc.

University of Waterloo

Page 22: CS480/680 Machine Learning Lecture 1: May 6 , 2019 · 2019. 8. 14. · CS480/680 Machine Learning Lecture 1: May 6th, 2019 Course Introduction Pascal Poupart University of Waterloo

CS480/680 Spring 2019 Pascal Poupart 22

Game Playing

• Example: Go (one of the oldest and hardest board games)

• Agent: player

• Environment: opponent

• State: board configuration

• Action: next stone location

• Reward: +1 win / -1 loose

• 2016: AlphaGo defeats top player Lee Sedol (4-1)– Game 2 move 37: AlphaGo plays unexpected move (odds 1/10,000)

University of Waterloo

Page 23: CS480/680 Machine Learning Lecture 1: May 6 , 2019 · 2019. 8. 14. · CS480/680 Machine Learning Lecture 1: May 6th, 2019 Course Introduction Pascal Poupart University of Waterloo

Applications of Machine Learning• Speech recognition

– Siri, Cortana• Natural Language Processing

– Machine translation, question answering, dialog systems• Computer vision

– Image and video analysis• Robotic Control

– Autonomous vehicles• Intelligent assistants

– Activity recognition, recommender systems• Computational finance

– Stock trading, portfolio optimization

CS480/680 Spring 2019 Pascal Poupart 23University of Waterloo

Page 24: CS480/680 Machine Learning Lecture 1: May 6 , 2019 · 2019. 8. 14. · CS480/680 Machine Learning Lecture 1: May 6th, 2019 Course Introduction Pascal Poupart University of Waterloo

This course

• Supervised and unsupervised machine learning

• But not reinforcement learning• See CS885 Spring 2018– Website: https://cs.uwaterloo.ca/~ppoupart/teaching/cs885-spring18/

– Video lectures: https://www.youtube.com/playlist?list=PLdAoL1zKcqTXFJniO3Tqqn6xMBBL07EDc

CS480/680 Spring 2019 Pascal Poupart 24University of Waterloo