SlideShare a Scribd company logo
INTRODUCTION
TO MACHINE
LEARNING
Presented By:
KIRTI VERMA
AP, CSE
LNCTE
WHAT IS MACHINE LEARNING?
“Learning is any process by which a system improves
performance from experience.”
- Herbert Simon
Definition by Tom Mitchell (1998):
Machine Learning is the study of algorithms that
• improve their performance P
• at some task T
• with experience E.
A well-defined learning task is given by <P, T, E>.
3
TRADITIONAL
PROGRAMMING
Machine Learning
Computer
Data
Program
Output
Computer
Data
Output
Program
Slide credit: Pedro Domingos
4
WHEN DO WE USE MACHINE
LEARNING?
ML is used when:
• Human expertise does not exist (navigating on Mars)
• Humans can’t explain their expertise (speech recognition)
• Models must be customized (personalized medicine)
• Models are based on huge amounts of data (genomics)
Learning isn’t always useful:
• There is no need to “learn” to calculate payroll
Based on slide by E. Alpaydin
5
A Classic Example Of A Task That Requires Machine
Learning: It Is Very Hard To Say What Makes
A 2
6
Slide credit: Geoffrey Hinton
7
Slide credit: Geoffrey Hinton
Some More Examples of Tasks That Are Best
Solved By Using A Learning Algorithm
• Recognizing patterns:
– Facial identities or facial expressions
– Handwritten or spoken words
– Medical images
• Generating patterns:
– Generating images or motion sequences
• Recognizing anomalies:
– Unusual credit card transactions
– Unusual patterns of sensor readings in a nuclear
power plant
• Prediction:
– Future stock prices or currency exchange rates
8
Slide credit: Pedro Domingos
SAMPLE APPLICATIONS
• Web search
• Computational biology
• Finance
• E-commerce
• Space exploration
• Robotics
• Information extraction
• Social networks
• Debugging software
• [Your favorite area]
DEFINING THE LEARNING TASK
T:Improve on task
P:with respect to performance metric
E:based on experience
T: Playing checkers
P: Percentage of games won against an arbitrary opponent E: Playing practice
games against itself
T: Recognizing hand-written words
P: Percentage of words correctly classified
E: Database of human-labeled images of handwritten words
T: Driving on four-lane highways using vision sensors
P: Average distance traveled before a human-judged error
E: A sequence of images and steering commands recorded while observing a human
driver.
Slide credit: Ray Mooney
10
STATE OF THE ART APPLICATIONS OF
MACHINE LEARNING
11
AUTONOMOUS CARS
• Nevada made it legal for
autonomous cars to drive on
roads in June 2011
• As of 2013, four states (Nevada,
Florida, California, and
Michigan) have legalized
autonomous cars
Penn’s Autonomous Car 
(Ben Franklin Racing Team) 12
AUTONOMOUS CAR SENSORS
13
AUTONOMOUS CAR TECHNOLOGY
Laser Terrain Mapping
Stanley
Learning from Human Drivers
Sebastian
Adaptive Vision
Path
Planning
Images and movies taken from Sebastian Thrun’s multimedia w1e4bsite.
DEEP LEARNING IN THE HEADLINES
15
pixels
edges
object parts
(combination
of edges)
object models
DEEP BELIEF NET ON FACE IMAGES
Based on materials
by Andrew Ng
16
LEARNING OF OBJECT PARTS
17
Slide credit: Andrew Ng
TRAINING ON MULTIPLE OBJECTS
Trained on 4 classes (cars, faces,
motorbikes, airplanes).
Second layer: Shared-features and
object-specific features.
Third layer: More specific
features.
18
Slide credit: Andrew Ng
SCENE LABELING VIA DEEP LEARNING
[Farabet et al. ICML 2012, PAMI 2013] 19
Input images
Samples from
feedforward
Inference
(control)
Samples from
Full posterior
inference
INFERENCE FROM DEEP LEARNED MODELS
Generating posterior samples from faces by “filling in” experiments
(cf. Lee and Mumford, 2003). Combine bottom-up and top-down inference.
Slide credit: Andrew Ng
20
MACHINE LEARNING IN AUTOMATIC
SPEECH RECOGNITION
A Typical Speech Recognition System
ML used to predict of phone states from the sound spectrogram
Deep learning has state-of-the-art results
# Hidden Layers 1 2 4 8 10 12
Word Error Rate % 16.0 12.8 11.4 10.9 11.0 11.1
Baseline GMM performance = 15.4%
[Zeiler et al. “On rectified linear units for speech
recognition” ICASSP 2013]
21
IMPACT OF DEEP LEARNING IN SPEECH
TECHNOLOGY
Slide credit: Li Deng, MS Research
22
TYPES OF LEARNING
23
TYPES OF LEARNING
• Supervised (inductive) learning
– Given: training data + desired outputs (labels)
• Unsupervised learning
– Given: training data (without desired outputs)
• Semi-supervised learning
– Given: training data + a few desired outputs
• Reinforcement learning
– Rewards from sequence of actions
Based on slide by Pedro Domingos
24
MACHINE LEARNING TYPES
Ml types
Supervised
Continuous Target
Variables
Regression
(like House price
Prediction)
Categorical Target
Variables
Classification(like
Medical Imaging)
Unsupervised
Target values not
known
Clustering (like
Customer
Segmentation)
Association (like
Market Basket
Analysis)
Semi-supervised
Categorical Target
Available
Classification (like
Text
Classification)
Clustering (like
Lane finding using
GPS)
Reinforcement
Categorical Target
Variable
Classification (like
Optimized
Marketing)
Target variable not
available
Control (like
Driverless cars)
APPLICATIONS
Supervised
• Handwriting
• Prediction Stock
market prediction
• Disease prediction
• Fraud prediction
Unsupervised
• Market Basket
analysis
• Recommender
systems
• Customer
segmentation
Reinforcement
• Self Driving
Cars
• Intelligent
Robots
• AlphaGo
Zero (latest
version on
DeepMind’s
AI)
SUPERVISED LEARNING: REGRESSION
• Given (x1, y1), (x2, y2), ..., (xn, yn)
• Learn a function f (x) to predict y given x
– y is real-valued == regression
9
8
7
6
5
4
3
2
1
0
1970 1980 1990 2000 2010 2020
September
Arctic
Sea
Ice
Extent
(1,000,000
sq
km)
Year
Data from G. Witt. Journal of Statistics Education, Volume 21, Number 1 (2013)
26
SUPERVISED LEARNING: CLASSIFICATION
28
• Given (x1, y1), (x2, y2), ..., (xn, yn)
• Learn a function f (x) to predict y given x
– y is categorical == classification
Breast Cancer (Malignant / Benign)
1(Malignant)
0(Benign)
Tumor Size
Tumor Size
Based on example by Andrew Ng
SUPERVISED LEARNING: CLASSIFICATION
29
• Given (x1, y1), (x2, y2), ..., (xn, yn)
• Learn a function f (x) to predict y given x
– y is categorical == classification
Breast Cancer (Malignant / Benign)
1(Malignant)
0(Benign)
Tumor Size
Predict Benign Predict Malignant
Tumor Size
Based on example by Andrew Ng
SUPERVISED LEARNING
Tumor Size
Age
- Clump Thickness
- Uniformity of Cell Size
- Uniformity of Cell Shape
…
• x can be multi-dimensional
– Each dimension corresponds to an attribute
Based on example by Andrew Ng
30
UNSUPERVISED LEARNING
• Given x1, x2, ..., xn (without labels)
• Output hidden structure behind the x’s
– E.g., clustering
31
Organize computing clusters Social network analysis
Image credit: NASA/JPL-Caltech/E. Churchwell (Univ. of Wisconsin, Madison)
Astronomical data analysis
Market segmentation
Slide credit: Andrew Ng
UNSUPERVISED LEARNING
33
UNSUPERVISED LEARNING
34
• Independent component analysis – separate a
combined signal into its original sources
Image credit: statsoft.com Audio from http://www.ism.ac.jp/~shiro/research/blindsep.html
UNSUPERVISED LEARNING
35
• Independent component analysis – separate a
combined signal into its original sources
Image credit: statsoft.com Audio from http://www.ism.ac.jp/~shiro/research/blindsep.html
REINFORCEMENT LEARNING
• Given a sequence of states and actions with
(delayed) rewards, output a policy
– Policy is a mapping from states  actions that
tells you what to do in a given state
• Examples:
– Credit assignment problem
– Game playing
– Robot in a maze
– Balance a pole on your hand
36
THE AGENT-ENVIRONMENT INTERFACE
Agent and environment interact at discrete time steps
Agent observes state at step t: st S
: t  0, 1, 2, K
produces action at step t : at  A(st )
gets resulting reward :
and resulting next state :
rt1 
st1
. . . st at
rt +1 st +1
at +1
rt +2 st +2
at +2
rt +3 st +3
. . .
at +3
Slide credit: Sutton & Barto
37
REINFORCEMENT LEARNING
38
INVERSE REINFORCEMENT LEARNING
39
• Learn policy from user demonstrations
FRAMING A LEARNING PROBLEM
40
DESIGNING A LEARNING SYSTEM
• Choose the training experience
• Choose exactly what is to be learned
– i.e. the target function
• Choose how to represent the target function
• Choose a learning algorithm to infer the target
function from the experience
Environment/
Experience
Learner
Knowledge
Performance
Element
Based on slide by Ray Mooney
Training data
Testing data
41
TRAINING VS. TEST DISTRIBUTION
• We generally assume that the training and
test examples are independently drawn from
the same overall distribution of data
– We call this “i.i.d” which stands for “independent
and identically distributed”
• If examples are not independent, requires
collective classification
• If test distribution is different, requires
transfer learning
Slide credit: Ray Mooney
42
ML IN A NUTSHELL
• Tens of thousands of machine learning
algorithms
– Hundreds new every year
• Every ML algorithm has three components:
– Representation
– Optimization
– Evaluation
Slide credit: Pedro Domingos
43
VARIOUS FUNCTION REPRESENTATIONS
44
Slide credit: Ray Mooney
• Numerical functions
– Linear regression
– Neural networks
– Support vector machines
• Symbolic functions
– Decision trees
– Rules in propositional logic
– Rules in first-order predicate logic
• Instance-based functions
– Nearest-neighbor
– Case-based
• Probabilistic Graphical Models
– Naïve Bayes
– Bayesian networks
– Hidden-Markov Models (HMMs)
– Probabilistic Context Free Grammars (PCFGs)
– Markov networks
VARIOUS SEARCH/OPTIMIZATION
ALGORITHMS
45
Slide credit: Ray Mooney
• Gradient descent
– Perceptron
– Backpropagation
• Dynamic Programming
– HMM Learning
– PCFG Learning
• Divide and Conquer
– Decision tree induction
– Rule learning
• Evolutionary Computation
– Genetic Algorithms (GAs)
– Genetic Programming (GP)
– Neuro-evolution
47
Slide credit: Pedro Domingos
EVALUATION
• Accuracy
• Precision and recall
• Squared error
• Likelihood
• Posterior probability
• Cost / Utility
• Margin
• Entropy
• K-L divergence
• etc.
ML IN PRACTICE
• Understand domain, prior knowledge, and goals
• Data integration, selection, cleaning, pre-processing, etc.
• Learn models
• Interpret results
• Consolidate and deploy discovered knowledge
Loop
48
Based on a slide by Pedro Domingos
49
LESSONS LEARNED ABOUT LEARNING
• Learning can be viewed as using direct or indirect
experience to approximate a chosen target function.
• Function approximation can be viewed as a search
through a space of hypotheses (representations of
functions) for one that best fits a set of training data.
• Different learning methods assume different
hypothesis spaces (representation languages) and/or
employ different search techniques.
Slide credit: Ray Mooney

More Related Content

Similar to L 8 introduction to machine learning final kirti.pptx

Introduction to machine learning-2023-IT-AI and DS.pdf
Introduction to machine learning-2023-IT-AI and DS.pdfIntroduction to machine learning-2023-IT-AI and DS.pdf
Introduction to machine learning-2023-IT-AI and DS.pdf
SisayNegash4
 
ML
MLML
ML.ppt
ML.pptML.ppt
ML.ppt
ssuserd27779
 
ML.ppt
ML.pptML.ppt
ML.ppt
ssuserd27779
 
ML.pptvdvdvdvdvdfvdfgvdsdgdsfgdfgdfgdfgdf
ML.pptvdvdvdvdvdfvdfgvdsdgdsfgdfgdfgdfgdfML.pptvdvdvdvdvdfvdfgvdsdgdsfgdfgdfgdfgdf
ML.pptvdvdvdvdvdfvdfgvdsdgdsfgdfgdfgdfgdf
AvijitChaudhuri3
 
ML.ppt
ML.pptML.ppt
ML.ppt
nazimsattar
 
ML.ppt
ML.pptML.ppt
ML.ppt
ML.pptML.ppt
Machine learning[1]
Machine learning[1]Machine learning[1]
Machine learning[1]
sugaeshwari
 
林守德/Practical Issues in Machine Learning
林守德/Practical Issues in Machine Learning林守德/Practical Issues in Machine Learning
林守德/Practical Issues in Machine Learning
台灣資料科學年會
 
Machine_Learning.pptx
Machine_Learning.pptxMachine_Learning.pptx
Machine_Learning.pptx
shubhamatak136
 
Machine learning introduction to unit 1.ppt
Machine learning introduction to unit 1.pptMachine learning introduction to unit 1.ppt
Machine learning introduction to unit 1.ppt
ShivaShiva783981
 
Introduction to Machine Learning
Introduction to Machine LearningIntroduction to Machine Learning
Introduction to Machine Learning
SSSSSS354882
 
machine learning algorithm.pptx
machine learning algorithm.pptxmachine learning algorithm.pptx
machine learning algorithm.pptx
SasmitaDash28
 
Intro to ML.pptx
Intro to ML.pptxIntro to ML.pptx
Intro to ML.pptx
BHAGYAPRASADBUGGE
 
Intro to machine learning
Intro to machine learningIntro to machine learning
Intro to machine learning
Akshay Kanchan
 
Lecture 09(introduction to machine learning)
Lecture 09(introduction to machine learning)Lecture 09(introduction to machine learning)
Lecture 09(introduction to machine learning)
Jeet Das
 
Lecture 1: What is Machine Learning?
Lecture 1: What is Machine Learning?Lecture 1: What is Machine Learning?
Lecture 1: What is Machine Learning?
Marina Santini
 
Week 1.pdf
Week 1.pdfWeek 1.pdf
Week 1.pdf
AnjaliJain608033
 
Tech meetup Data Driven - Codemotion
Tech meetup Data Driven - Codemotion Tech meetup Data Driven - Codemotion
Tech meetup Data Driven - Codemotion
antimo musone
 

Similar to L 8 introduction to machine learning final kirti.pptx (20)

Introduction to machine learning-2023-IT-AI and DS.pdf
Introduction to machine learning-2023-IT-AI and DS.pdfIntroduction to machine learning-2023-IT-AI and DS.pdf
Introduction to machine learning-2023-IT-AI and DS.pdf
 
ML
MLML
ML
 
ML.ppt
ML.pptML.ppt
ML.ppt
 
ML.ppt
ML.pptML.ppt
ML.ppt
 
ML.pptvdvdvdvdvdfvdfgvdsdgdsfgdfgdfgdfgdf
ML.pptvdvdvdvdvdfvdfgvdsdgdsfgdfgdfgdfgdfML.pptvdvdvdvdvdfvdfgvdsdgdsfgdfgdfgdfgdf
ML.pptvdvdvdvdvdfvdfgvdsdgdsfgdfgdfgdfgdf
 
ML.ppt
ML.pptML.ppt
ML.ppt
 
ML.ppt
ML.pptML.ppt
ML.ppt
 
ML.ppt
ML.pptML.ppt
ML.ppt
 
Machine learning[1]
Machine learning[1]Machine learning[1]
Machine learning[1]
 
林守德/Practical Issues in Machine Learning
林守德/Practical Issues in Machine Learning林守德/Practical Issues in Machine Learning
林守德/Practical Issues in Machine Learning
 
Machine_Learning.pptx
Machine_Learning.pptxMachine_Learning.pptx
Machine_Learning.pptx
 
Machine learning introduction to unit 1.ppt
Machine learning introduction to unit 1.pptMachine learning introduction to unit 1.ppt
Machine learning introduction to unit 1.ppt
 
Introduction to Machine Learning
Introduction to Machine LearningIntroduction to Machine Learning
Introduction to Machine Learning
 
machine learning algorithm.pptx
machine learning algorithm.pptxmachine learning algorithm.pptx
machine learning algorithm.pptx
 
Intro to ML.pptx
Intro to ML.pptxIntro to ML.pptx
Intro to ML.pptx
 
Intro to machine learning
Intro to machine learningIntro to machine learning
Intro to machine learning
 
Lecture 09(introduction to machine learning)
Lecture 09(introduction to machine learning)Lecture 09(introduction to machine learning)
Lecture 09(introduction to machine learning)
 
Lecture 1: What is Machine Learning?
Lecture 1: What is Machine Learning?Lecture 1: What is Machine Learning?
Lecture 1: What is Machine Learning?
 
Week 1.pdf
Week 1.pdfWeek 1.pdf
Week 1.pdf
 
Tech meetup Data Driven - Codemotion
Tech meetup Data Driven - Codemotion Tech meetup Data Driven - Codemotion
Tech meetup Data Driven - Codemotion
 

More from Kirti Verma

L-5 BCEProcess management.ppt
L-5 BCEProcess management.pptL-5 BCEProcess management.ppt
L-5 BCEProcess management.ppt
Kirti Verma
 
L-3 BCE OS FINAL.ppt
L-3 BCE OS FINAL.pptL-3 BCE OS FINAL.ppt
L-3 BCE OS FINAL.ppt
Kirti Verma
 
L-4 BCE Generations of Computers final.ppt
L-4 BCE Generations of Computers final.pptL-4 BCE Generations of Computers final.ppt
L-4 BCE Generations of Computers final.ppt
Kirti Verma
 
L-1 BCE computer fundamentals final kirti.ppt
L-1 BCE computer fundamentals final kirti.pptL-1 BCE computer fundamentals final kirti.ppt
L-1 BCE computer fundamentals final kirti.ppt
Kirti Verma
 
BCE L-4 Data Type In C++.ppt
BCE L-4 Data Type In C++.pptBCE L-4 Data Type In C++.ppt
BCE L-4 Data Type In C++.ppt
Kirti Verma
 
BCE L-3 overview of C++.ppt
BCE L-3 overview of C++.pptBCE L-3 overview of C++.ppt
BCE L-3 overview of C++.ppt
Kirti Verma
 
BCE L-2 Algorithms-and-Flowchart-ppt.ppt
BCE L-2 Algorithms-and-Flowchart-ppt.pptBCE L-2 Algorithms-and-Flowchart-ppt.ppt
BCE L-2 Algorithms-and-Flowchart-ppt.ppt
Kirti Verma
 
BCE L-1 Programmimg languages.pptx
BCE L-1  Programmimg languages.pptxBCE L-1  Programmimg languages.pptx
BCE L-1 Programmimg languages.pptx
Kirti Verma
 
BCE L-1 networking fundamentals 111.pptx
BCE L-1  networking fundamentals 111.pptxBCE L-1  networking fundamentals 111.pptx
BCE L-1 networking fundamentals 111.pptx
Kirti Verma
 
BCE L-2 e commerce.pptx
BCE L-2 e commerce.pptxBCE L-2 e commerce.pptx
BCE L-2 e commerce.pptx
Kirti Verma
 
BCE L-3omputer security Basics.pptx
BCE L-3omputer security Basics.pptxBCE L-3omputer security Basics.pptx
BCE L-3omputer security Basics.pptx
Kirti Verma
 
L 5 Numpy final ppt kirti.pptx
L 5 Numpy final ppt kirti.pptxL 5 Numpy final ppt kirti.pptx
L 5 Numpy final ppt kirti.pptx
Kirti Verma
 
L 2 Introduction to Data science final kirti.pptx
L 2 Introduction to Data science final kirti.pptxL 2 Introduction to Data science final kirti.pptx
L 2 Introduction to Data science final kirti.pptx
Kirti Verma
 
Pandas Dataframe reading data Kirti final.pptx
Pandas Dataframe reading data  Kirti final.pptxPandas Dataframe reading data  Kirti final.pptx
Pandas Dataframe reading data Kirti final.pptx
Kirti Verma
 
L 6.1 complete scikit libraray.pptx
L 6.1 complete scikit libraray.pptxL 6.1 complete scikit libraray.pptx
L 6.1 complete scikit libraray.pptx
Kirti Verma
 
L 7Complete Machine learning.pptx
L 7Complete Machine learning.pptxL 7Complete Machine learning.pptx
L 7Complete Machine learning.pptx
Kirti Verma
 
Introduction to python history and platforms
Introduction to python history and platformsIntroduction to python history and platforms
Introduction to python history and platforms
Kirti Verma
 
Informed Search Techniques new kirti L 8.pptx
Informed Search Techniques new kirti L 8.pptxInformed Search Techniques new kirti L 8.pptx
Informed Search Techniques new kirti L 8.pptx
Kirti Verma
 
Production System l 10.pptx
Production System l 10.pptxProduction System l 10.pptx
Production System l 10.pptx
Kirti Verma
 
Breath first Search and Depth first search
Breath first Search and Depth first searchBreath first Search and Depth first search
Breath first Search and Depth first search
Kirti Verma
 

More from Kirti Verma (20)

L-5 BCEProcess management.ppt
L-5 BCEProcess management.pptL-5 BCEProcess management.ppt
L-5 BCEProcess management.ppt
 
L-3 BCE OS FINAL.ppt
L-3 BCE OS FINAL.pptL-3 BCE OS FINAL.ppt
L-3 BCE OS FINAL.ppt
 
L-4 BCE Generations of Computers final.ppt
L-4 BCE Generations of Computers final.pptL-4 BCE Generations of Computers final.ppt
L-4 BCE Generations of Computers final.ppt
 
L-1 BCE computer fundamentals final kirti.ppt
L-1 BCE computer fundamentals final kirti.pptL-1 BCE computer fundamentals final kirti.ppt
L-1 BCE computer fundamentals final kirti.ppt
 
BCE L-4 Data Type In C++.ppt
BCE L-4 Data Type In C++.pptBCE L-4 Data Type In C++.ppt
BCE L-4 Data Type In C++.ppt
 
BCE L-3 overview of C++.ppt
BCE L-3 overview of C++.pptBCE L-3 overview of C++.ppt
BCE L-3 overview of C++.ppt
 
BCE L-2 Algorithms-and-Flowchart-ppt.ppt
BCE L-2 Algorithms-and-Flowchart-ppt.pptBCE L-2 Algorithms-and-Flowchart-ppt.ppt
BCE L-2 Algorithms-and-Flowchart-ppt.ppt
 
BCE L-1 Programmimg languages.pptx
BCE L-1  Programmimg languages.pptxBCE L-1  Programmimg languages.pptx
BCE L-1 Programmimg languages.pptx
 
BCE L-1 networking fundamentals 111.pptx
BCE L-1  networking fundamentals 111.pptxBCE L-1  networking fundamentals 111.pptx
BCE L-1 networking fundamentals 111.pptx
 
BCE L-2 e commerce.pptx
BCE L-2 e commerce.pptxBCE L-2 e commerce.pptx
BCE L-2 e commerce.pptx
 
BCE L-3omputer security Basics.pptx
BCE L-3omputer security Basics.pptxBCE L-3omputer security Basics.pptx
BCE L-3omputer security Basics.pptx
 
L 5 Numpy final ppt kirti.pptx
L 5 Numpy final ppt kirti.pptxL 5 Numpy final ppt kirti.pptx
L 5 Numpy final ppt kirti.pptx
 
L 2 Introduction to Data science final kirti.pptx
L 2 Introduction to Data science final kirti.pptxL 2 Introduction to Data science final kirti.pptx
L 2 Introduction to Data science final kirti.pptx
 
Pandas Dataframe reading data Kirti final.pptx
Pandas Dataframe reading data  Kirti final.pptxPandas Dataframe reading data  Kirti final.pptx
Pandas Dataframe reading data Kirti final.pptx
 
L 6.1 complete scikit libraray.pptx
L 6.1 complete scikit libraray.pptxL 6.1 complete scikit libraray.pptx
L 6.1 complete scikit libraray.pptx
 
L 7Complete Machine learning.pptx
L 7Complete Machine learning.pptxL 7Complete Machine learning.pptx
L 7Complete Machine learning.pptx
 
Introduction to python history and platforms
Introduction to python history and platformsIntroduction to python history and platforms
Introduction to python history and platforms
 
Informed Search Techniques new kirti L 8.pptx
Informed Search Techniques new kirti L 8.pptxInformed Search Techniques new kirti L 8.pptx
Informed Search Techniques new kirti L 8.pptx
 
Production System l 10.pptx
Production System l 10.pptxProduction System l 10.pptx
Production System l 10.pptx
 
Breath first Search and Depth first search
Breath first Search and Depth first searchBreath first Search and Depth first search
Breath first Search and Depth first search
 

Recently uploaded

Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024
Jason Packer
 
GNSS spoofing via SDR (Criptored Talks 2024)
GNSS spoofing via SDR (Criptored Talks 2024)GNSS spoofing via SDR (Criptored Talks 2024)
GNSS spoofing via SDR (Criptored Talks 2024)
Javier Junquera
 
FREE A4 Cyber Security Awareness Posters-Social Engineering part 3
FREE A4 Cyber Security Awareness  Posters-Social Engineering part 3FREE A4 Cyber Security Awareness  Posters-Social Engineering part 3
FREE A4 Cyber Security Awareness Posters-Social Engineering part 3
Data Hops
 
GraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracyGraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracy
Tomaz Bratanic
 
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
Alex Pruden
 
Connector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectors
Connector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectorsConnector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectors
Connector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectors
DianaGray10
 
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy SurveyTrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc
 
Fueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte WebinarFueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte Webinar
Zilliz
 
Freshworks Rethinks NoSQL for Rapid Scaling & Cost-Efficiency
Freshworks Rethinks NoSQL for Rapid Scaling & Cost-EfficiencyFreshworks Rethinks NoSQL for Rapid Scaling & Cost-Efficiency
Freshworks Rethinks NoSQL for Rapid Scaling & Cost-Efficiency
ScyllaDB
 
Public CyberSecurity Awareness Presentation 2024.pptx
Public CyberSecurity Awareness Presentation 2024.pptxPublic CyberSecurity Awareness Presentation 2024.pptx
Public CyberSecurity Awareness Presentation 2024.pptx
marufrahmanstratejm
 
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development ProvidersYour One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
akankshawande
 
JavaLand 2024: Application Development Green Masterplan
JavaLand 2024: Application Development Green MasterplanJavaLand 2024: Application Development Green Masterplan
JavaLand 2024: Application Development Green Masterplan
Miro Wengner
 
GraphRAG for LifeSciences Hands-On with the Clinical Knowledge Graph
GraphRAG for LifeSciences Hands-On with the Clinical Knowledge GraphGraphRAG for LifeSciences Hands-On with the Clinical Knowledge Graph
GraphRAG for LifeSciences Hands-On with the Clinical Knowledge Graph
Neo4j
 
Apps Break Data
Apps Break DataApps Break Data
Apps Break Data
Ivo Velitchkov
 
Nordic Marketo Engage User Group_June 13_ 2024.pptx
Nordic Marketo Engage User Group_June 13_ 2024.pptxNordic Marketo Engage User Group_June 13_ 2024.pptx
Nordic Marketo Engage User Group_June 13_ 2024.pptx
MichaelKnudsen27
 
[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...
[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...
[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...
Jason Yip
 
Driving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success StoryDriving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success Story
Safe Software
 
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
saastr
 
Astute Business Solutions | Oracle Cloud Partner |
Astute Business Solutions | Oracle Cloud Partner |Astute Business Solutions | Oracle Cloud Partner |
Astute Business Solutions | Oracle Cloud Partner |
AstuteBusiness
 
Presentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of GermanyPresentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of Germany
innovationoecd
 

Recently uploaded (20)

Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024
 
GNSS spoofing via SDR (Criptored Talks 2024)
GNSS spoofing via SDR (Criptored Talks 2024)GNSS spoofing via SDR (Criptored Talks 2024)
GNSS spoofing via SDR (Criptored Talks 2024)
 
FREE A4 Cyber Security Awareness Posters-Social Engineering part 3
FREE A4 Cyber Security Awareness  Posters-Social Engineering part 3FREE A4 Cyber Security Awareness  Posters-Social Engineering part 3
FREE A4 Cyber Security Awareness Posters-Social Engineering part 3
 
GraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracyGraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracy
 
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
 
Connector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectors
Connector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectorsConnector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectors
Connector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectors
 
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy SurveyTrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy Survey
 
Fueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte WebinarFueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte Webinar
 
Freshworks Rethinks NoSQL for Rapid Scaling & Cost-Efficiency
Freshworks Rethinks NoSQL for Rapid Scaling & Cost-EfficiencyFreshworks Rethinks NoSQL for Rapid Scaling & Cost-Efficiency
Freshworks Rethinks NoSQL for Rapid Scaling & Cost-Efficiency
 
Public CyberSecurity Awareness Presentation 2024.pptx
Public CyberSecurity Awareness Presentation 2024.pptxPublic CyberSecurity Awareness Presentation 2024.pptx
Public CyberSecurity Awareness Presentation 2024.pptx
 
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development ProvidersYour One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
 
JavaLand 2024: Application Development Green Masterplan
JavaLand 2024: Application Development Green MasterplanJavaLand 2024: Application Development Green Masterplan
JavaLand 2024: Application Development Green Masterplan
 
GraphRAG for LifeSciences Hands-On with the Clinical Knowledge Graph
GraphRAG for LifeSciences Hands-On with the Clinical Knowledge GraphGraphRAG for LifeSciences Hands-On with the Clinical Knowledge Graph
GraphRAG for LifeSciences Hands-On with the Clinical Knowledge Graph
 
Apps Break Data
Apps Break DataApps Break Data
Apps Break Data
 
Nordic Marketo Engage User Group_June 13_ 2024.pptx
Nordic Marketo Engage User Group_June 13_ 2024.pptxNordic Marketo Engage User Group_June 13_ 2024.pptx
Nordic Marketo Engage User Group_June 13_ 2024.pptx
 
[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...
[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...
[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...
 
Driving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success StoryDriving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success Story
 
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
 
Astute Business Solutions | Oracle Cloud Partner |
Astute Business Solutions | Oracle Cloud Partner |Astute Business Solutions | Oracle Cloud Partner |
Astute Business Solutions | Oracle Cloud Partner |
 
Presentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of GermanyPresentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of Germany
 

L 8 introduction to machine learning final kirti.pptx

  • 2. WHAT IS MACHINE LEARNING? “Learning is any process by which a system improves performance from experience.” - Herbert Simon Definition by Tom Mitchell (1998): Machine Learning is the study of algorithms that • improve their performance P • at some task T • with experience E. A well-defined learning task is given by <P, T, E>. 3
  • 4. WHEN DO WE USE MACHINE LEARNING? ML is used when: • Human expertise does not exist (navigating on Mars) • Humans can’t explain their expertise (speech recognition) • Models must be customized (personalized medicine) • Models are based on huge amounts of data (genomics) Learning isn’t always useful: • There is no need to “learn” to calculate payroll Based on slide by E. Alpaydin 5
  • 5. A Classic Example Of A Task That Requires Machine Learning: It Is Very Hard To Say What Makes A 2 6 Slide credit: Geoffrey Hinton
  • 6. 7 Slide credit: Geoffrey Hinton Some More Examples of Tasks That Are Best Solved By Using A Learning Algorithm • Recognizing patterns: – Facial identities or facial expressions – Handwritten or spoken words – Medical images • Generating patterns: – Generating images or motion sequences • Recognizing anomalies: – Unusual credit card transactions – Unusual patterns of sensor readings in a nuclear power plant • Prediction: – Future stock prices or currency exchange rates
  • 7. 8 Slide credit: Pedro Domingos SAMPLE APPLICATIONS • Web search • Computational biology • Finance • E-commerce • Space exploration • Robotics • Information extraction • Social networks • Debugging software • [Your favorite area]
  • 8. DEFINING THE LEARNING TASK T:Improve on task P:with respect to performance metric E:based on experience T: Playing checkers P: Percentage of games won against an arbitrary opponent E: Playing practice games against itself T: Recognizing hand-written words P: Percentage of words correctly classified E: Database of human-labeled images of handwritten words T: Driving on four-lane highways using vision sensors P: Average distance traveled before a human-judged error E: A sequence of images and steering commands recorded while observing a human driver. Slide credit: Ray Mooney 10
  • 9. STATE OF THE ART APPLICATIONS OF MACHINE LEARNING 11
  • 10. AUTONOMOUS CARS • Nevada made it legal for autonomous cars to drive on roads in June 2011 • As of 2013, four states (Nevada, Florida, California, and Michigan) have legalized autonomous cars Penn’s Autonomous Car  (Ben Franklin Racing Team) 12
  • 12. AUTONOMOUS CAR TECHNOLOGY Laser Terrain Mapping Stanley Learning from Human Drivers Sebastian Adaptive Vision Path Planning Images and movies taken from Sebastian Thrun’s multimedia w1e4bsite.
  • 13. DEEP LEARNING IN THE HEADLINES 15
  • 14. pixels edges object parts (combination of edges) object models DEEP BELIEF NET ON FACE IMAGES Based on materials by Andrew Ng 16
  • 15. LEARNING OF OBJECT PARTS 17 Slide credit: Andrew Ng
  • 16. TRAINING ON MULTIPLE OBJECTS Trained on 4 classes (cars, faces, motorbikes, airplanes). Second layer: Shared-features and object-specific features. Third layer: More specific features. 18 Slide credit: Andrew Ng
  • 17. SCENE LABELING VIA DEEP LEARNING [Farabet et al. ICML 2012, PAMI 2013] 19
  • 18. Input images Samples from feedforward Inference (control) Samples from Full posterior inference INFERENCE FROM DEEP LEARNED MODELS Generating posterior samples from faces by “filling in” experiments (cf. Lee and Mumford, 2003). Combine bottom-up and top-down inference. Slide credit: Andrew Ng 20
  • 19. MACHINE LEARNING IN AUTOMATIC SPEECH RECOGNITION A Typical Speech Recognition System ML used to predict of phone states from the sound spectrogram Deep learning has state-of-the-art results # Hidden Layers 1 2 4 8 10 12 Word Error Rate % 16.0 12.8 11.4 10.9 11.0 11.1 Baseline GMM performance = 15.4% [Zeiler et al. “On rectified linear units for speech recognition” ICASSP 2013] 21
  • 20. IMPACT OF DEEP LEARNING IN SPEECH TECHNOLOGY Slide credit: Li Deng, MS Research 22
  • 22. TYPES OF LEARNING • Supervised (inductive) learning – Given: training data + desired outputs (labels) • Unsupervised learning – Given: training data (without desired outputs) • Semi-supervised learning – Given: training data + a few desired outputs • Reinforcement learning – Rewards from sequence of actions Based on slide by Pedro Domingos 24
  • 23. MACHINE LEARNING TYPES Ml types Supervised Continuous Target Variables Regression (like House price Prediction) Categorical Target Variables Classification(like Medical Imaging) Unsupervised Target values not known Clustering (like Customer Segmentation) Association (like Market Basket Analysis) Semi-supervised Categorical Target Available Classification (like Text Classification) Clustering (like Lane finding using GPS) Reinforcement Categorical Target Variable Classification (like Optimized Marketing) Target variable not available Control (like Driverless cars)
  • 24. APPLICATIONS Supervised • Handwriting • Prediction Stock market prediction • Disease prediction • Fraud prediction Unsupervised • Market Basket analysis • Recommender systems • Customer segmentation Reinforcement • Self Driving Cars • Intelligent Robots • AlphaGo Zero (latest version on DeepMind’s AI)
  • 25. SUPERVISED LEARNING: REGRESSION • Given (x1, y1), (x2, y2), ..., (xn, yn) • Learn a function f (x) to predict y given x – y is real-valued == regression 9 8 7 6 5 4 3 2 1 0 1970 1980 1990 2000 2010 2020 September Arctic Sea Ice Extent (1,000,000 sq km) Year Data from G. Witt. Journal of Statistics Education, Volume 21, Number 1 (2013) 26
  • 26. SUPERVISED LEARNING: CLASSIFICATION 28 • Given (x1, y1), (x2, y2), ..., (xn, yn) • Learn a function f (x) to predict y given x – y is categorical == classification Breast Cancer (Malignant / Benign) 1(Malignant) 0(Benign) Tumor Size Tumor Size Based on example by Andrew Ng
  • 27. SUPERVISED LEARNING: CLASSIFICATION 29 • Given (x1, y1), (x2, y2), ..., (xn, yn) • Learn a function f (x) to predict y given x – y is categorical == classification Breast Cancer (Malignant / Benign) 1(Malignant) 0(Benign) Tumor Size Predict Benign Predict Malignant Tumor Size Based on example by Andrew Ng
  • 28. SUPERVISED LEARNING Tumor Size Age - Clump Thickness - Uniformity of Cell Size - Uniformity of Cell Shape … • x can be multi-dimensional – Each dimension corresponds to an attribute Based on example by Andrew Ng 30
  • 29. UNSUPERVISED LEARNING • Given x1, x2, ..., xn (without labels) • Output hidden structure behind the x’s – E.g., clustering 31
  • 30. Organize computing clusters Social network analysis Image credit: NASA/JPL-Caltech/E. Churchwell (Univ. of Wisconsin, Madison) Astronomical data analysis Market segmentation Slide credit: Andrew Ng UNSUPERVISED LEARNING 33
  • 31. UNSUPERVISED LEARNING 34 • Independent component analysis – separate a combined signal into its original sources Image credit: statsoft.com Audio from http://www.ism.ac.jp/~shiro/research/blindsep.html
  • 32. UNSUPERVISED LEARNING 35 • Independent component analysis – separate a combined signal into its original sources Image credit: statsoft.com Audio from http://www.ism.ac.jp/~shiro/research/blindsep.html
  • 33. REINFORCEMENT LEARNING • Given a sequence of states and actions with (delayed) rewards, output a policy – Policy is a mapping from states  actions that tells you what to do in a given state • Examples: – Credit assignment problem – Game playing – Robot in a maze – Balance a pole on your hand 36
  • 34. THE AGENT-ENVIRONMENT INTERFACE Agent and environment interact at discrete time steps Agent observes state at step t: st S : t  0, 1, 2, K produces action at step t : at  A(st ) gets resulting reward : and resulting next state : rt1  st1 . . . st at rt +1 st +1 at +1 rt +2 st +2 at +2 rt +3 st +3 . . . at +3 Slide credit: Sutton & Barto 37
  • 36. INVERSE REINFORCEMENT LEARNING 39 • Learn policy from user demonstrations
  • 37. FRAMING A LEARNING PROBLEM 40
  • 38. DESIGNING A LEARNING SYSTEM • Choose the training experience • Choose exactly what is to be learned – i.e. the target function • Choose how to represent the target function • Choose a learning algorithm to infer the target function from the experience Environment/ Experience Learner Knowledge Performance Element Based on slide by Ray Mooney Training data Testing data 41
  • 39. TRAINING VS. TEST DISTRIBUTION • We generally assume that the training and test examples are independently drawn from the same overall distribution of data – We call this “i.i.d” which stands for “independent and identically distributed” • If examples are not independent, requires collective classification • If test distribution is different, requires transfer learning Slide credit: Ray Mooney 42
  • 40. ML IN A NUTSHELL • Tens of thousands of machine learning algorithms – Hundreds new every year • Every ML algorithm has three components: – Representation – Optimization – Evaluation Slide credit: Pedro Domingos 43
  • 41. VARIOUS FUNCTION REPRESENTATIONS 44 Slide credit: Ray Mooney • Numerical functions – Linear regression – Neural networks – Support vector machines • Symbolic functions – Decision trees – Rules in propositional logic – Rules in first-order predicate logic • Instance-based functions – Nearest-neighbor – Case-based • Probabilistic Graphical Models – Naïve Bayes – Bayesian networks – Hidden-Markov Models (HMMs) – Probabilistic Context Free Grammars (PCFGs) – Markov networks
  • 42. VARIOUS SEARCH/OPTIMIZATION ALGORITHMS 45 Slide credit: Ray Mooney • Gradient descent – Perceptron – Backpropagation • Dynamic Programming – HMM Learning – PCFG Learning • Divide and Conquer – Decision tree induction – Rule learning • Evolutionary Computation – Genetic Algorithms (GAs) – Genetic Programming (GP) – Neuro-evolution
  • 43. 47 Slide credit: Pedro Domingos EVALUATION • Accuracy • Precision and recall • Squared error • Likelihood • Posterior probability • Cost / Utility • Margin • Entropy • K-L divergence • etc.
  • 44. ML IN PRACTICE • Understand domain, prior knowledge, and goals • Data integration, selection, cleaning, pre-processing, etc. • Learn models • Interpret results • Consolidate and deploy discovered knowledge Loop 48 Based on a slide by Pedro Domingos
  • 45. 49 LESSONS LEARNED ABOUT LEARNING • Learning can be viewed as using direct or indirect experience to approximate a chosen target function. • Function approximation can be viewed as a search through a space of hypotheses (representations of functions) for one that best fits a set of training data. • Different learning methods assume different hypothesis spaces (representation languages) and/or employ different search techniques. Slide credit: Ray Mooney