Lecture 3 - Introduction To Deep Learning
Lecture 3 - Introduction To Deep Learning
Module 1: AI Fundamentals
Lecture 3: Introduction to Deep Learning
2
Example
• Handwritten Digit Recognition
3
Goal of Machine Learning
• Consider a 28 x 28 pixel image
• Represented by a 784-dimensional vector x
• Goal: build a machine that takes the vector x as input
and produces the identity of digit 0,…,9 as the output
• Tom Mitchel’s definition of Machine Learning:
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.
4
Important Terminology
• Training data
• Data samples
• Target vectors
• Learning / Training
• Machine takes training data and automatically learns mapping
from data samples to target vectors
• Test data
• Target vectors are concealed from the machine
• Machine predicts the target vectors based on previously
learned model
• Accuracy can be evaluated by comparing the predicted
vectors to the actual vectors
5
What is AI, Machine (Deep) Learning
6
What is AI, Machine (Deep) Learning
7
What is AI, Machine (Deep) Learning
8
Types of Machine
Learning Problems
9
Types of Machine Learning Problems
• Supervised learning
• Regression
• Classification
• Unsupervised learning
• Clustering
• Density estimation
10
Machine Learning vs Deep Learning
11
The “deep” in Deep Learning
• Stands for this idea of successive layers of
representations
• How many layers contribute to a model of the data is
called the depth of the model
• Modern deep learning often involves tens or even
hundreds of successive layers of representations —
and they’re all learned automatically from exposure to
training data
• Meanwhile, other approaches to machine learning tend
to focus on learning only one or two layers of
representations of the data; hence, they’re sometimes
called shallow learning
12
Achievements
• Near-human-level image classification, speech
recognition, handwriting transcription, autonomous
driving
• Improved machine translation, text-to-speech
conversion, search results on the web, ad targeting
(Google, Baidu, and Bing)
• Digital assistants such as Google Now and Amazon
Alexa
• Ability to answer natural-language questions
• Superhuman Go playing
• Artificial Arts and game playing
13
Memory Lane
1957 1970
1979 2016 2017
1943 – – 2006 2009 2014 2021 2022
-98 -17 -19
1962 1986
14
Why Deep Learning is so successful?
15
Why Deep Learning is so successful?
16
Why Deep Learning is so successful?
• We provide the raw data of images to the first layer of the input layer.
• After then, these input layer will determine the patterns of local contrast that
means it will differentiate on the basis of colors, luminosity, etc.
17
Why Deep Learning is so successful?
• Then the 1st hidden layer will determine the face feature
• For example, it will fixate on eyes, nose, and lips, etc.
• And then, it will fixate those face features on the correct face template.
18
Why Deep Learning is so successful?
• So, in the 2nd hidden layer, it will actually determine the correct face here as
it can be seen in the above image,
• after which it will be sent to the output layer.
19
Why Deep Learning is so successful?
Performan
Data Feature Model Model
ce
Collection Choice Selection Training Evaluation
21
Typical Cycle Design
Performan
Data Feature Model Model
ce
Collection Choice Selection Training Evaluation
22
Typical Cycle Design
Performan
Data Feature Model Model
ce
Collection Choice Selection Training Evaluation
• Easy to extract
• Highly discriminative
• Noise robust
• Invariant to irrelevant transformations
23
Typical Cycle Design
Performan
Data Feature Model Model
ce
Collection Choice Selection Training Evaluation
24
Typical Cycle Design
Model Performan
Data Feature Model
ce
Collection Choice Selection Training Evaluation
• Training constraints
• Parameters
• Best practices
25
Typical Cycle Design
26
Happy
Learning!