SlideShare a Scribd company logo
1 of 20
Machine Learning
Intro iCAMP 2012
Max Welling
UC Irvine
1
Machine Learning
• Algorithms that learn to make predictions from examples (data)
2
Types of Machine Learning
• Supervised Learning
• Labels are provided, there is a strong learning signal.
• e.g. classification, regression.
• Semi-supervised Learning.
• Only part of the data have labels.
• e.g. a child growing up.
• Reinforcement learning.
• The learning signal is a (scalar) reward and may come with a delay.
• e.g. trying to learn to play chess, a mouse in a maze.
• Unsupervised learning
• There is no direct learning signal. We are simply trying to find structure in data.
• e.g. clustering, dimensionality reduction.
3
Unsupervised Learning:
4
(LLE – Roweis & Saul)
Dimensionality Reduction: clustering
Supervised Learning
5
Regression Classification
Collaborative Filtering
movies
(+/-
17,770)
users (+/- 240,000)
total of +/- 400,000,000 nonzero entries
(99% sparse)
4
(Netflix Dataset)
4
? 1
1
?
6
Generalization
• Consider the following regression problem:
• Predict the real value on the y-axis from the real value on the x-axis.
• You are given 6 examples: {Xi,Yi}.
• What is the y-value for a new query point X* ?
X*
7
Generalization
8
Generalization
9
Generalization
which curve is best?
10
• Ockham’s razor: prefer the simplest hypothesis
consistent with data.
Generalization
11
Generalization
Learning is concerned with accurate prediction
of future data, not accurate prediction of training data.
12
Question: Design an algorithm that is perfect at predicting training data.
Learning as Compression
• Imagine a game where Bob needs to send a dataset to Alice.
• They are allowed to meet once before they see the data.
• The agree on a precision level (quantization level).
• Bob learns a model (red line).
• Bob sends the model parameters
(offset and slant) only once
• For every datapoint, Bob sends
-distance along line (large number)
-orthogonal distance from line (small number)
(small numbers are cheaper to encode than
large numbers)
13
Generalization
learning = compression = abstraction
• The man who couldn’t forget …
14
Classification: nearest neighbor
Example: Imagine you want to classify versus
Data: 100 monkey images and 200 human images with labels what is what.
Task: Here is a new image: monkey or human?
15
1 nearest neighbor
Idea:
1. Find the picture in the database which is closest your query image.
2. Check its label.
3. Declare the class of your query image to be the same as that of the
closest picture.
query
closest image
16
kNN Decision Surface
decision curve
17
Bayes Rule(s)
Riddle: Joe goes to the doctor and tells the doctor he has a stiff neck and a rash.
The doctor is worried about meningitis and performs a test that is 80% correct, that is,
for 80% of the people that have meningitis it will turn out positive. If 1 in 100,000 people
have meningitis in the population and 1 in 1000 people will test positive (sick or not sick)
what is the probability that Joe has meningitis?
Answer: Bayes Rule.
P(meningitis | positive test) = P(positive test | meningitis ) P(meningitis) / P(positive test)
= 0.8 * 0.00001 / 0.001 = 0.008 < 1%
18
Naïve Bayes Classifier
test
result
meningitis
stiff-neck,
rash
19
Naïve Bayes Classifier:
P(Y|X1,X2) = P(X1|Y) P(X2|Y) P(Y) / PX1, X2)
X1
X2
Y
P(X1,X2|Y) = P(X1|Y) P(X2|Y)
Conditional Independence:
Bayesian Networks & Graphical Models
• Main modeling tool for modern machine learning
• Reasoning over large collections of random variables with intricate relations
20

More Related Content

Similar to Machine Learning Introduction.pptx

Machine Learning ICS 273A
Machine Learning ICS 273AMachine Learning ICS 273A
Machine Learning ICS 273A
butest
 

Similar to Machine Learning Introduction.pptx (20)

Supervised learning: Types of Machine Learning
Supervised learning: Types of Machine LearningSupervised learning: Types of Machine Learning
Supervised learning: Types of Machine Learning
 
Zero shot-learning: paper presentation
Zero shot-learning: paper presentationZero shot-learning: paper presentation
Zero shot-learning: paper presentation
 
Computational Neuroscience - The Brain - Computer Science Interface
Computational Neuroscience - The Brain - Computer Science InterfaceComputational Neuroscience - The Brain - Computer Science Interface
Computational Neuroscience - The Brain - Computer Science Interface
 
Intro to machine learning
Intro to machine learningIntro to machine learning
Intro to machine learning
 
Module 5: Decision Trees
Module 5: Decision TreesModule 5: Decision Trees
Module 5: Decision Trees
 
Unit-V Machine Learning.ppt
Unit-V Machine Learning.pptUnit-V Machine Learning.ppt
Unit-V Machine Learning.ppt
 
Machine Learning ICS 273A
Machine Learning ICS 273AMachine Learning ICS 273A
Machine Learning ICS 273A
 
Machine Learning ebook.pdf
Machine Learning ebook.pdfMachine Learning ebook.pdf
Machine Learning ebook.pdf
 
1_5_AI_edx_ml_51intro_240204_104838machine learning lecture 1
1_5_AI_edx_ml_51intro_240204_104838machine learning lecture 11_5_AI_edx_ml_51intro_240204_104838machine learning lecture 1
1_5_AI_edx_ml_51intro_240204_104838machine learning lecture 1
 
Core Methods In Educational Data Mining
Core Methods In Educational Data MiningCore Methods In Educational Data Mining
Core Methods In Educational Data Mining
 
know Machine Learning Basic Concepts.pdf
know Machine Learning Basic Concepts.pdfknow Machine Learning Basic Concepts.pdf
know Machine Learning Basic Concepts.pdf
 
2017 07 03_meetup_d
2017 07 03_meetup_d2017 07 03_meetup_d
2017 07 03_meetup_d
 
2017 07 03_meetup_d
2017 07 03_meetup_d2017 07 03_meetup_d
2017 07 03_meetup_d
 
Understanding deep learning requires rethinking generalization
Understanding deep learning requires rethinking generalizationUnderstanding deep learning requires rethinking generalization
Understanding deep learning requires rethinking generalization
 
Deep learning tutorial 9/2019
Deep learning tutorial 9/2019Deep learning tutorial 9/2019
Deep learning tutorial 9/2019
 
Deep Learning Tutorial
Deep Learning TutorialDeep Learning Tutorial
Deep Learning Tutorial
 
Pattern recognition and Machine Learning.
Pattern recognition and Machine Learning.Pattern recognition and Machine Learning.
Pattern recognition and Machine Learning.
 
Artificail Intelligent lec-1
Artificail Intelligent lec-1Artificail Intelligent lec-1
Artificail Intelligent lec-1
 
2023-08-22 CoLLAs Tutorial - Beyond CIL.pdf
2023-08-22 CoLLAs Tutorial - Beyond CIL.pdf2023-08-22 CoLLAs Tutorial - Beyond CIL.pdf
2023-08-22 CoLLAs Tutorial - Beyond CIL.pdf
 
Introduction to machine learning
Introduction to machine learningIntroduction to machine learning
Introduction to machine learning
 

Recently uploaded

Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 

Recently uploaded (20)

HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 
Basic Intentional Injuries Health Education
Basic Intentional Injuries Health EducationBasic Intentional Injuries Health Education
Basic Intentional Injuries Health Education
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 

Machine Learning Introduction.pptx

  • 1. Machine Learning Intro iCAMP 2012 Max Welling UC Irvine 1
  • 2. Machine Learning • Algorithms that learn to make predictions from examples (data) 2
  • 3. Types of Machine Learning • Supervised Learning • Labels are provided, there is a strong learning signal. • e.g. classification, regression. • Semi-supervised Learning. • Only part of the data have labels. • e.g. a child growing up. • Reinforcement learning. • The learning signal is a (scalar) reward and may come with a delay. • e.g. trying to learn to play chess, a mouse in a maze. • Unsupervised learning • There is no direct learning signal. We are simply trying to find structure in data. • e.g. clustering, dimensionality reduction. 3
  • 4. Unsupervised Learning: 4 (LLE – Roweis & Saul) Dimensionality Reduction: clustering
  • 6. Collaborative Filtering movies (+/- 17,770) users (+/- 240,000) total of +/- 400,000,000 nonzero entries (99% sparse) 4 (Netflix Dataset) 4 ? 1 1 ? 6
  • 7. Generalization • Consider the following regression problem: • Predict the real value on the y-axis from the real value on the x-axis. • You are given 6 examples: {Xi,Yi}. • What is the y-value for a new query point X* ? X* 7
  • 11. • Ockham’s razor: prefer the simplest hypothesis consistent with data. Generalization 11
  • 12. Generalization Learning is concerned with accurate prediction of future data, not accurate prediction of training data. 12 Question: Design an algorithm that is perfect at predicting training data.
  • 13. Learning as Compression • Imagine a game where Bob needs to send a dataset to Alice. • They are allowed to meet once before they see the data. • The agree on a precision level (quantization level). • Bob learns a model (red line). • Bob sends the model parameters (offset and slant) only once • For every datapoint, Bob sends -distance along line (large number) -orthogonal distance from line (small number) (small numbers are cheaper to encode than large numbers) 13
  • 14. Generalization learning = compression = abstraction • The man who couldn’t forget … 14
  • 15. Classification: nearest neighbor Example: Imagine you want to classify versus Data: 100 monkey images and 200 human images with labels what is what. Task: Here is a new image: monkey or human? 15
  • 16. 1 nearest neighbor Idea: 1. Find the picture in the database which is closest your query image. 2. Check its label. 3. Declare the class of your query image to be the same as that of the closest picture. query closest image 16
  • 18. Bayes Rule(s) Riddle: Joe goes to the doctor and tells the doctor he has a stiff neck and a rash. The doctor is worried about meningitis and performs a test that is 80% correct, that is, for 80% of the people that have meningitis it will turn out positive. If 1 in 100,000 people have meningitis in the population and 1 in 1000 people will test positive (sick or not sick) what is the probability that Joe has meningitis? Answer: Bayes Rule. P(meningitis | positive test) = P(positive test | meningitis ) P(meningitis) / P(positive test) = 0.8 * 0.00001 / 0.001 = 0.008 < 1% 18
  • 19. Naïve Bayes Classifier test result meningitis stiff-neck, rash 19 Naïve Bayes Classifier: P(Y|X1,X2) = P(X1|Y) P(X2|Y) P(Y) / PX1, X2) X1 X2 Y P(X1,X2|Y) = P(X1|Y) P(X2|Y) Conditional Independence:
  • 20. Bayesian Networks & Graphical Models • Main modeling tool for modern machine learning • Reasoning over large collections of random variables with intricate relations 20