SlideShare a Scribd company logo
1 of 43
Lecture 01: Introduction
Satwat Bashir
What is Machine Learning?
How can we solve a specific problem?
What is Machine Learning?
How can we solve a specific problem?
As computer scientists we write a program that encodes a set of rules that
are useful to solve the problem
Figure: How can we make a robot cook?
What is Machine Learning?
How can we solve a specific problem?
As computer scientists we write a program that encodes a set of rules
that are useful to solve the problem
In many cases is very difficult to specify those rules, e.g., given a
picture determine whether there is a cat in the image
What is Machine Learning?
How can we solve a specific problem?
As computer scientists we write a program that encodes a set of rules
that are useful to solve the problem
In many cases is very difficult to specify those rules, e.g., given a picture
determine whether there is a cat in the image
Learning systems are not directly programmed to solve a problem, instead
develop own program based on:
Examples of how they should behave
From trial-and-error experience trying to solve the problem
Different than standard CS:
Want to implement unknown function, only have access e.g., to sample
input-output pairs (training examples)
Learning simply means incorporating information from the training examples
into the system
Tasks that requires machine learning: What makes a 2?
Tasks that benefits from machine learning: cooking!
Why use learning?
It is very hard to write programs that solve problems like recognizing a
handwritten digit
What distinguishes a 2 from a 7?
How does our brain do it?
Instead of writing a program by hand, we collect examples that specify the
correct output for a given input
A machine learning algorithm then takes these examples and produces a
program that does the job
The program produced by the learning algorithm may look very different
from a typical hand-written program. It may contain millions of
numbers.
If we do it right, the program works for new cases as well as the ones
we trained it on.
Learningalgorithms are useful in many tasks
1. Classification: Determine which discrete category the example is
Examples of Classification
What digit is this?
Examples of Classification
Is this a dog?
Examples of Classification
what about this one?
Examples of Classification
Am I going to pass the exam?
Examples of Classification
Do I have diabetes?
Learning algorithms are useful in many tasks
1. Classification: Determine which discrete category the example is
2. Recognizing patterns: Speech Recognition, facial identity, etc
Examplesof Recognizing patterns
Figure: Siri: https://www.youtube.com/watch?v=8ciagGASro0
Examples of Recognizing patterns
Figure: Photomath: https://photomath.net/
Learning algorithms are useful in other tasks
1. Classification: Determine which discrete category the example is
2. Recognizing patterns: Speech Recognition, facial identity, etc
3. Recommender Systems: Noisy data, commercial pay-off (e.g., Amazon,
Netflix).
Examples of Recommendation systems
Examples of Recommendation systems
Examples of Recommendation systems
Learning algorithms are useful in other tasks
1. Classification: Determine which discrete category the example is
2. Recognizing patterns: Speech Recognition, facial identity, etc
3. Recommender Systems: Noisy data, commercial pay-off (e.g., Amazon,
Netflix).
4. Information retrieval: Find documents or images with similar content
Examples of Information Retrieval
Examples of Information Retrieval
Examples of Information Retrieval
Learning algorithms are useful in other tasks
1. Classification: Determine which discrete category the example is
2. Recognizing patterns: Speech Recognition, facial identity, etc
3. Recommender Systems: Noisy data, commercial pay-off (e.g., Amazon,
Netflix).
4. Information retrieval: Find documents or images with similar content
5. Computer vision: detection, segmentation, depth estimation, optical flow,
etc
Computer Vision
Computer Vision
Figure: Kinect: https://www.youtube.com/watch?v=op82fDRRqSY
Computer Vision
[Gatys, Ecker, Bethge. A Neural Algorithm of Artistic Style. Arxiv’15.]
Learning algorithms are useful in other tasks
1. Classification: Determine which discrete category the example is
2. Recognizing patterns: Speech Recognition, facial identity, etc
3. Recommender Systems: Noisy data, commercial pay-off (e.g., Amazon,
Netflix).
4. Information retrieval: Find documents or images with similar content
5. Computer vision: detection, segmentation, depth estimation, optical flow,
etc
6. Robotics: perception, planning, etc
Autonomous Driving
Flying Robots
Figure: Video: https://www.youtube.com/watch?v=YQIMGV5vtd4
Learning algorithms are useful in other tasks
1. Classification: Determine which discrete category the example is
2. Recognizing patterns: Speech Recognition, facial identity, etc
3. Recommender Systems: Noisy data, commercial pay-off (e.g., Amazon,
Netflix).
4. Information retrieval: Find documents or images with similar content
5. Computer vision: detection, segmentation, depth estimation, optical flow,
etc
6. Robotics: perception, planning, etc
7. Learning to play games
Playing Games: Atari
Figure: Video: https://www.youtube.com/watch?v=V1eYniJ0Rnk
Playing Games: Super Mario
Figure: Video: https://www.youtube.com/watch?v=wfL4L_l4U9A
Playing Games: Alpha Go
Learning algorithms are useful in other
tasks
1. Classification: Determine which discrete category the example is
2. Recognizing patterns: Speech Recognition, facial identity, etc
3. Recommender Systems: Noisy data, commercial pay-off (e.g., Amazon,
Netflix).
4. Information retrieval: Find documents or images with similar content
5. Computer vision: detection, segmentation, depth estimation, optical flow,
etc
6. Robotics: perception, planning, etc
7. Learning to play games
8. Recognizing anomalies: Unusual sequences of credit card transactions, panic
situation at an airport
Learning algorithms are useful in other
tasks
1. Classification: Determine which discrete category the example is
2. Recognizing patterns: Speech Recognition, facial identity, etc
3. Recommender Systems: Noisy data, commercial pay-off (e.g., Amazon,
Netflix).
4. Information retrieval: Find documents or images with similar content
5. Computer vision: detection, segmentation, depth estimation, optical flow,
etc
6. Robotics: perception, planning, etc
7. Learning to play games
8. Recognizing anomalies: Unusual sequences of credit card transactions, panic
situation at an airport
9. Spam filtering, fraud detection: The enemy adapts so we must adapt too
Learning algorithms are useful in other
tasks
1. Classification: Determine which discrete category the example is
2. Recognizing patterns: Speech Recognition, facial identity, etc
3. Recommender Systems: Noisy data, commercial pay-off (e.g., Amazon,
Netflix).
4. Information retrieval: Find documents or images with similar content
5. Computer vision: detection, segmentation, depth estimation, optical flow,
etc
6. Robotics: perception, planning, etc
7. Learning to play games
8. Recognizing anomalies: Unusual sequences of credit card transactions, panic
situation at an airport
9. Spam filtering, fraud detection: The enemy adapts so we must adapt too
10. Many more!
Types of learning tasks
Supervised: correct output known for each training example
) Learn to predict output when given an input vector
) Classification: 1-of-N output (speech recognition, object recognition,
medical diagnosis)
) Regression: real-valued output (predicting market prices, customer
rating)
Unsupervised learning
) Create an internal representation of the input, capturing
regularities/structure in data
) Examples: form clusters; extract features
) How do we know if a representation is good?
Reinforcement learning
) Learn action to maximize payoff
) Not much information in a payoff signal
) Payoff is often delayed
Machine Learning vs Statistics
ML uses statistical theory to build models
A lot of ML is rediscovery of things statisticians already knew; often
disguised by differences in terminology
But the emphasis is very different:
Good piece of statistics: Clever proof that relatively simple estimation
procedure is asymptotically unbiased.
Good piece of ML: Demo that a complicated algorithm produces
impressive results on a specific task.
Can view ML as applying computational techniques to statistical problems.
But go beyond typical statistics problems, with different aims (speed vs.
accuracy).
Differences
MACHINE LEARNING
weights
learning
generalization
supervised learning
unsupervised learning
large grant: $1,000,000
conference location:
Snowbird, French Alps
STATISTICS
parameters
fitting
test set performance
regression/classification
density estimation, clustering
large grant: $50,000
conference location: Las Vegas in
August
Brain storming
What grade will I get in this course?
Data: entry survey and marks from this and previous years
Process the data
Split into training set; and test set
Determine representation of input;
Determine the representation of the output;
Choose form of model: linear regression
Decide how to evaluate the system’s performance: objective function
Set model parameters to optimize performance
Evaluate on test set: generalization

More Related Content

Similar to Machine Learning.pptx

introduction to machine learning
introduction to machine learningintroduction to machine learning
introduction to machine learningJohnson Ubah
 
Machine Learning Fundamentals.docx
Machine Learning Fundamentals.docxMachine Learning Fundamentals.docx
Machine Learning Fundamentals.docxHaritvKrishnagiri
 
Machine Learning Contents.pptx
Machine Learning Contents.pptxMachine Learning Contents.pptx
Machine Learning Contents.pptxNaveenkushwaha18
 
Introduction AI ML& Mathematicals of ML.pdf
Introduction AI ML& Mathematicals of ML.pdfIntroduction AI ML& Mathematicals of ML.pdf
Introduction AI ML& Mathematicals of ML.pdfGandhiMathy6
 
notes as .ppt
notes as .pptnotes as .ppt
notes as .pptbutest
 
Machine Learning Ch 1.ppt
Machine Learning Ch 1.pptMachine Learning Ch 1.ppt
Machine Learning Ch 1.pptARVIND SARDAR
 
Data analytics with python introductory
Data analytics with python introductoryData analytics with python introductory
Data analytics with python introductoryAbhimanyu Dwivedi
 
Popular Machine Learning Myths
Popular Machine Learning Myths Popular Machine Learning Myths
Popular Machine Learning Myths Rock Interview
 
Machine Learning Basics
Machine Learning BasicsMachine Learning Basics
Machine Learning BasicsSuresh Arora
 
2.17Mb ppt
2.17Mb ppt2.17Mb ppt
2.17Mb pptbutest
 
Everything You Need to Know About Computer Vision
Everything You Need to Know About Computer VisionEverything You Need to Know About Computer Vision
Everything You Need to Know About Computer VisionKavika Roy
 
Machine learning applications nurturing growth of various business domains
Machine learning applications nurturing growth of various business domainsMachine learning applications nurturing growth of various business domains
Machine learning applications nurturing growth of various business domainsShrutika Oswal
 
Machine learning at b.e.s.t. summer university
Machine learning  at b.e.s.t. summer universityMachine learning  at b.e.s.t. summer university
Machine learning at b.e.s.t. summer universityLászló Kovács
 
Machine Learning for Designers - DX Meetup Basel
Machine Learning for Designers - DX Meetup BaselMachine Learning for Designers - DX Meetup Basel
Machine Learning for Designers - DX Meetup BaselMemi Beltrame
 
Modex Talks - AI Conceptual Overview
Modex Talks - AI Conceptual OverviewModex Talks - AI Conceptual Overview
Modex Talks - AI Conceptual OverviewModex
 
Supervised Machine Learning Techniques common algorithms and its application
Supervised Machine Learning Techniques common algorithms and its applicationSupervised Machine Learning Techniques common algorithms and its application
Supervised Machine Learning Techniques common algorithms and its applicationTara ram Goyal
 
Machine learning introduction
Machine learning introductionMachine learning introduction
Machine learning introductionAnas Jamil
 
An Introduction to Machine Learning
An Introduction to Machine LearningAn Introduction to Machine Learning
An Introduction to Machine LearningVedaj Padman
 

Similar to Machine Learning.pptx (20)

introduction to machine learning
introduction to machine learningintroduction to machine learning
introduction to machine learning
 
Machine Learning Fundamentals.docx
Machine Learning Fundamentals.docxMachine Learning Fundamentals.docx
Machine Learning Fundamentals.docx
 
Machine Learning Contents.pptx
Machine Learning Contents.pptxMachine Learning Contents.pptx
Machine Learning Contents.pptx
 
Introduction AI ML& Mathematicals of ML.pdf
Introduction AI ML& Mathematicals of ML.pdfIntroduction AI ML& Mathematicals of ML.pdf
Introduction AI ML& Mathematicals of ML.pdf
 
notes as .ppt
notes as .pptnotes as .ppt
notes as .ppt
 
Machine Learning Ch 1.ppt
Machine Learning Ch 1.pptMachine Learning Ch 1.ppt
Machine Learning Ch 1.ppt
 
Data analytics with python introductory
Data analytics with python introductoryData analytics with python introductory
Data analytics with python introductory
 
Popular Machine Learning Myths
Popular Machine Learning Myths Popular Machine Learning Myths
Popular Machine Learning Myths
 
Machine Learning Basics
Machine Learning BasicsMachine Learning Basics
Machine Learning Basics
 
Machine Learning
Machine LearningMachine Learning
Machine Learning
 
2.17Mb ppt
2.17Mb ppt2.17Mb ppt
2.17Mb ppt
 
Everything You Need to Know About Computer Vision
Everything You Need to Know About Computer VisionEverything You Need to Know About Computer Vision
Everything You Need to Know About Computer Vision
 
Machine learning applications nurturing growth of various business domains
Machine learning applications nurturing growth of various business domainsMachine learning applications nurturing growth of various business domains
Machine learning applications nurturing growth of various business domains
 
Machine learning at b.e.s.t. summer university
Machine learning  at b.e.s.t. summer universityMachine learning  at b.e.s.t. summer university
Machine learning at b.e.s.t. summer university
 
Machine Learning for Designers - DX Meetup Basel
Machine Learning for Designers - DX Meetup BaselMachine Learning for Designers - DX Meetup Basel
Machine Learning for Designers - DX Meetup Basel
 
Modex Talks - AI Conceptual Overview
Modex Talks - AI Conceptual OverviewModex Talks - AI Conceptual Overview
Modex Talks - AI Conceptual Overview
 
Supervised Machine Learning Techniques common algorithms and its application
Supervised Machine Learning Techniques common algorithms and its applicationSupervised Machine Learning Techniques common algorithms and its application
Supervised Machine Learning Techniques common algorithms and its application
 
Machine learning introduction
Machine learning introductionMachine learning introduction
Machine learning introduction
 
Machine Learning by Rj
Machine Learning by RjMachine Learning by Rj
Machine Learning by Rj
 
An Introduction to Machine Learning
An Introduction to Machine LearningAn Introduction to Machine Learning
An Introduction to Machine Learning
 

Recently uploaded

Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDGMarianaLemus7
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024BookNet Canada
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxnull - The Open Security Community
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 

Recently uploaded (20)

Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDG
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
The transition to renewables in India.pdf
The transition to renewables in India.pdfThe transition to renewables in India.pdf
The transition to renewables in India.pdf
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 

Machine Learning.pptx

  • 2. What is Machine Learning? How can we solve a specific problem?
  • 3. What is Machine Learning? How can we solve a specific problem? As computer scientists we write a program that encodes a set of rules that are useful to solve the problem Figure: How can we make a robot cook?
  • 4. What is Machine Learning? How can we solve a specific problem? As computer scientists we write a program that encodes a set of rules that are useful to solve the problem In many cases is very difficult to specify those rules, e.g., given a picture determine whether there is a cat in the image
  • 5. What is Machine Learning? How can we solve a specific problem? As computer scientists we write a program that encodes a set of rules that are useful to solve the problem In many cases is very difficult to specify those rules, e.g., given a picture determine whether there is a cat in the image Learning systems are not directly programmed to solve a problem, instead develop own program based on: Examples of how they should behave From trial-and-error experience trying to solve the problem Different than standard CS: Want to implement unknown function, only have access e.g., to sample input-output pairs (training examples) Learning simply means incorporating information from the training examples into the system
  • 6. Tasks that requires machine learning: What makes a 2?
  • 7. Tasks that benefits from machine learning: cooking!
  • 8. Why use learning? It is very hard to write programs that solve problems like recognizing a handwritten digit What distinguishes a 2 from a 7? How does our brain do it? Instead of writing a program by hand, we collect examples that specify the correct output for a given input A machine learning algorithm then takes these examples and produces a program that does the job The program produced by the learning algorithm may look very different from a typical hand-written program. It may contain millions of numbers. If we do it right, the program works for new cases as well as the ones we trained it on.
  • 9. Learningalgorithms are useful in many tasks 1. Classification: Determine which discrete category the example is
  • 13. Examples of Classification Am I going to pass the exam?
  • 14. Examples of Classification Do I have diabetes?
  • 15. Learning algorithms are useful in many tasks 1. Classification: Determine which discrete category the example is 2. Recognizing patterns: Speech Recognition, facial identity, etc
  • 16. Examplesof Recognizing patterns Figure: Siri: https://www.youtube.com/watch?v=8ciagGASro0
  • 17. Examples of Recognizing patterns Figure: Photomath: https://photomath.net/
  • 18. Learning algorithms are useful in other tasks 1. Classification: Determine which discrete category the example is 2. Recognizing patterns: Speech Recognition, facial identity, etc 3. Recommender Systems: Noisy data, commercial pay-off (e.g., Amazon, Netflix).
  • 22. Learning algorithms are useful in other tasks 1. Classification: Determine which discrete category the example is 2. Recognizing patterns: Speech Recognition, facial identity, etc 3. Recommender Systems: Noisy data, commercial pay-off (e.g., Amazon, Netflix). 4. Information retrieval: Find documents or images with similar content
  • 26. Learning algorithms are useful in other tasks 1. Classification: Determine which discrete category the example is 2. Recognizing patterns: Speech Recognition, facial identity, etc 3. Recommender Systems: Noisy data, commercial pay-off (e.g., Amazon, Netflix). 4. Information retrieval: Find documents or images with similar content 5. Computer vision: detection, segmentation, depth estimation, optical flow, etc
  • 28. Computer Vision Figure: Kinect: https://www.youtube.com/watch?v=op82fDRRqSY
  • 29. Computer Vision [Gatys, Ecker, Bethge. A Neural Algorithm of Artistic Style. Arxiv’15.]
  • 30. Learning algorithms are useful in other tasks 1. Classification: Determine which discrete category the example is 2. Recognizing patterns: Speech Recognition, facial identity, etc 3. Recommender Systems: Noisy data, commercial pay-off (e.g., Amazon, Netflix). 4. Information retrieval: Find documents or images with similar content 5. Computer vision: detection, segmentation, depth estimation, optical flow, etc 6. Robotics: perception, planning, etc
  • 32. Flying Robots Figure: Video: https://www.youtube.com/watch?v=YQIMGV5vtd4
  • 33. Learning algorithms are useful in other tasks 1. Classification: Determine which discrete category the example is 2. Recognizing patterns: Speech Recognition, facial identity, etc 3. Recommender Systems: Noisy data, commercial pay-off (e.g., Amazon, Netflix). 4. Information retrieval: Find documents or images with similar content 5. Computer vision: detection, segmentation, depth estimation, optical flow, etc 6. Robotics: perception, planning, etc 7. Learning to play games
  • 34. Playing Games: Atari Figure: Video: https://www.youtube.com/watch?v=V1eYniJ0Rnk
  • 35. Playing Games: Super Mario Figure: Video: https://www.youtube.com/watch?v=wfL4L_l4U9A
  • 37. Learning algorithms are useful in other tasks 1. Classification: Determine which discrete category the example is 2. Recognizing patterns: Speech Recognition, facial identity, etc 3. Recommender Systems: Noisy data, commercial pay-off (e.g., Amazon, Netflix). 4. Information retrieval: Find documents or images with similar content 5. Computer vision: detection, segmentation, depth estimation, optical flow, etc 6. Robotics: perception, planning, etc 7. Learning to play games 8. Recognizing anomalies: Unusual sequences of credit card transactions, panic situation at an airport
  • 38. Learning algorithms are useful in other tasks 1. Classification: Determine which discrete category the example is 2. Recognizing patterns: Speech Recognition, facial identity, etc 3. Recommender Systems: Noisy data, commercial pay-off (e.g., Amazon, Netflix). 4. Information retrieval: Find documents or images with similar content 5. Computer vision: detection, segmentation, depth estimation, optical flow, etc 6. Robotics: perception, planning, etc 7. Learning to play games 8. Recognizing anomalies: Unusual sequences of credit card transactions, panic situation at an airport 9. Spam filtering, fraud detection: The enemy adapts so we must adapt too
  • 39. Learning algorithms are useful in other tasks 1. Classification: Determine which discrete category the example is 2. Recognizing patterns: Speech Recognition, facial identity, etc 3. Recommender Systems: Noisy data, commercial pay-off (e.g., Amazon, Netflix). 4. Information retrieval: Find documents or images with similar content 5. Computer vision: detection, segmentation, depth estimation, optical flow, etc 6. Robotics: perception, planning, etc 7. Learning to play games 8. Recognizing anomalies: Unusual sequences of credit card transactions, panic situation at an airport 9. Spam filtering, fraud detection: The enemy adapts so we must adapt too 10. Many more!
  • 40. Types of learning tasks Supervised: correct output known for each training example ) Learn to predict output when given an input vector ) Classification: 1-of-N output (speech recognition, object recognition, medical diagnosis) ) Regression: real-valued output (predicting market prices, customer rating) Unsupervised learning ) Create an internal representation of the input, capturing regularities/structure in data ) Examples: form clusters; extract features ) How do we know if a representation is good? Reinforcement learning ) Learn action to maximize payoff ) Not much information in a payoff signal ) Payoff is often delayed
  • 41. Machine Learning vs Statistics ML uses statistical theory to build models A lot of ML is rediscovery of things statisticians already knew; often disguised by differences in terminology But the emphasis is very different: Good piece of statistics: Clever proof that relatively simple estimation procedure is asymptotically unbiased. Good piece of ML: Demo that a complicated algorithm produces impressive results on a specific task. Can view ML as applying computational techniques to statistical problems. But go beyond typical statistics problems, with different aims (speed vs. accuracy).
  • 42. Differences MACHINE LEARNING weights learning generalization supervised learning unsupervised learning large grant: $1,000,000 conference location: Snowbird, French Alps STATISTICS parameters fitting test set performance regression/classification density estimation, clustering large grant: $50,000 conference location: Las Vegas in August
  • 43. Brain storming What grade will I get in this course? Data: entry survey and marks from this and previous years Process the data Split into training set; and test set Determine representation of input; Determine the representation of the output; Choose form of model: linear regression Decide how to evaluate the system’s performance: objective function Set model parameters to optimize performance Evaluate on test set: generalization