SlideShare a Scribd company logo
DEEP LEARNING
 Supervised Deep Learning
 Unsupervised Deep Learning
 Semi supervised Deep Learning
LECTURE 5 SMALLER NETWORK:
CNN
 We know it is good to learn a small model.
 From this fully connected model, do we really
need all the edges?
 Can some of these be shared?
CONSIDER LEARNING AN IMAGE:
 Some patterns are much smaller than the whole
image
“beak”
detector
Can represent a small region with fewer
parameters
PLACES:
THEY CAN BE COMPRESSED!
WHAT ABOUT TRAINING A LOT OF SUCH
“SMALL” DETECTORS
AND EACH DETECTOR MUST “MOVE AROUND”.
“upper-left
beak”
detector
“middle beak”
detector
They can be compressed
to the same parameters.
A CONVOLUTIONAL LAYER
A filter
A CNN is a neural network with some convolutional layers
(and some other layers). A convolutional layer has a number
of filters that does convolutional operation.
Beak detector
CONVOLUTION
1 0 0 0 0 1
0 1 0 0 1 0
0 0 1 1 0 0
1 0 0 0 1 0
0 1 0 0 1 0
0 0 1 0 1 0
6 x 6 image
1 -1 -1
-1 1 -1
-1 -1 1
Filter 1
-1 1 -1
-1 1 -1
-1 1 -1
Filter 2
…
…
These are the network
parameters to be learned.
Each filter detects a
small pattern (3 x 3).
CONVOLUTION
1 0 0 0 0 1
0 1 0 0 1 0
0 0 1 1 0 0
1 0 0 0 1 0
0 1 0 0 1 0
0 0 1 0 1 0
6 x 6 image
1 -1 -1
-1 1 -1
-1 -1 1
Filter 1
3 -1
stride=1
Dot
product
CONVOLUTION
1 0 0 0 0 1
0 1 0 0 1 0
0 0 1 1 0 0
1 0 0 0 1 0
0 1 0 0 1 0
0 0 1 0 1 0
6 x 6 image
1 -1 -1
-1 1 -1
-1 -1 1
Filter 1
3 -3
If stride=2
CONVOLUTION
1 0 0 0 0 1
0 1 0 0 1 0
0 0 1 1 0 0
1 0 0 0 1 0
0 1 0 0 1 0
0 0 1 0 1 0
6 x 6 image
1 -1 -1
-1 1 -1
-1 -1 1
Filter 1
3 -1 -3 -1
-3 1 0 -3
-3 -3 0 1
3 -2 -2 -1
stride=1
CONVOLUTION
1 0 0 0 0 1
0 1 0 0 1 0
0 0 1 1 0 0
1 0 0 0 1 0
0 1 0 0 1 0
0 0 1 0 1 0
6 x 6 image
3 -1 -3 -1
-3 1 0 -3
-3 -3 0 1
3 -2 -2 -1
-1 1 -1
-1 1 -1
-1 1 -1
Filter 2
-1 -1 -1 -1
-1 -1 -2 1
-1 -1 -2 1
-1 0 -4 3
Repeat this for each filter
stride=1
Two 4 x 4 images
Forming 2 x 4 x 4 matrix
Feature
Map
COLOR IMAGE: RGB 3 CHANNELS
1 0 0 0 0 1
0 1 0 0 1 0
0 0 1 1 0 0
1 0 0 0 1 0
0 1 0 0 1 0
0 0 1 0 1 0
1 0 0 0 0 1
0 1 0 0 1 0
0 0 1 1 0 0
1 0 0 0 1 0
0 1 0 0 1 0
0 0 1 0 1 0
1 0 0 0 0 1
0 1 0 0 1 0
0 0 1 1 0 0
1 0 0 0 1 0
0 1 0 0 1 0
0 0 1 0 1 0
1 -1 -1
-1 1 -1
-1 -1 1
Filter 1
-1 1 -1
-1 1 -1
-1 1 -1
Filter 2
1 -1 -1
-1 1 -1
-1 -1 1
1 -1 -1
-1 1 -1
-1 -1 1
-1 1 -1
-1 1 -1
-1 1 -1
-1 1 -1
-1 1 -1
-1 1 -1
Color image
1 0 0 0 0 1
0 1 0 0 1 0
0 0 1 1 0 0
1 0 0 0 1 0
0 1 0 0 1 0
0 0 1 0 1 0
image
convolution
-1 1 -1
-1 1 -1
-1 1 -1
1 -1 -1
-1 1 -1
-1 -1 1
1
x
2
x
…
…
36
x
…
…
1 0 0 0 0 1
0 1 0 0 1 0
0 0 1 1 0 0
1 0 0 0 1 0
0 1 0 0 1 0
0 0 1 0 1 0
Convolution v.s. Fully Connected
Fully-
connected
1 0 0 0 0 1
0 1 0 0 1 0
0 0 1 1 0 0
1 0 0 0 1 0
0 1 0 0 1 0
0 0 1 0 1 0
6 x 6 image
1 -1 -1
-1 1 -1
-1 -1 1
Filter 1
1
2
3
…
8
9
…
13
14
15
… Only connect
to 9 inputs, not
fully connected
4
:
10:
16
1
0
0
0
0
1
0
0
0
0
1
1
3
fewer parameters!
1 0 0 0 0 1
0 1 0 0 1 0
0 0 1 1 0 0
1 0 0 0 1 0
0 1 0 0 1 0
0 0 1 0 1 0
1 -1 -1
-1 1 -1
-1 -1 1
Filter 1
1
:
2
:
3
:
…
7
:
8
:
9
:
…
13
:
14
:
15
:
…
4
:
10:
16
:
1
0
0
0
0
1
0
0
0
0
1
1
3
-1
Shared weights
6 x 6 image
Fewer parameters
Even fewer parameters
THE WHOLE CNN
Fully Connected
Feedforward network
cat dog ……
Convolution
Max Pooling
Convolution
Max Pooling
Flattened
Can repeat
many
times
MAX POOLING
3 -1 -3 -1
-3 1 0 -3
-3 -3 0 1
3 -2 -2 -1
-1 1 -1
-1 1 -1
-1 1 -1
Filter 2
-1 -1 -1 -1
-1 -1 -2 1
-1 -1 -2 1
-1 0 -4 3
1 -1 -1
-1 1 -1
-1 -1 1
Filter 1
WHY POOLING
 Subsampling pixels will not change the
object
Subsampling
bird
bird
We can subsample the pixels to make image smaller
fewer parameters to characterize the image
A CNN COMPRESSES A FULLY
CONNECTED NETWORK IN TWO
WAYS:
 Reducing number of connections
 Shared weights on the edges
 Max pooling further reduces the complexity
MAX POOLING
1 0 0 0 0 1
0 1 0 0 1 0
0 0 1 1 0 0
1 0 0 0 1 0
0 1 0 0 1 0
0 0 1 0 1 0
6 x 6 image
3 0
1
3
-1 1
3
0
2 x 2 image
Each filter
is a channel
New image
but smaller
Conv
Max
Poolin
g
THE WHOLE CNN
Convolution
Max Pooling
Convolution
Max Pooling
Can repeat
many
times
A new image
The number of channels
is the number of filters
Smaller than the original
image
3 0
1
3
-1 1
3
0
THE WHOLE CNN
Fully Connected
Feedforward network
cat dog ……
Convolution
Max Pooling
Convolution
Max Pooling
Flattened
A new image
A new image
FLATTENING
3 0
1
3
-1 1
3
0 Flattened
3
0
1
3
-1
1
0
3
Fully Connected
Feedforward network
Only modified the network structure and
input format (vector -> 3-D tensor)
CNN in Keras
Convolution
Max Pooling
Convolution
Max Pooling
input
1 -1 -1
-1 1 -1
-1 -1 1
-1 1 -1
-1 1 -1
-1 1 -1
There are
25 3x3
filters.
…
…
Input_shape = ( 28 , 28 , 1)
1: black/white, 3: RGB
28 x 28 pixels
3 -1
-3 1
3
Only modified the network structure and
input format (vector -> 3-D array)
CNN in Keras
Convolution
Max Pooling
Convolution
Max Pooling
Input
1 x 28 x 28
25 x 26 x 26
25 x 13 x 13
50 x 11 x 11
50 x 5 x 5
How many parameters for
each filter?
How many parameters
for each filter?
9
225=
25x9
Only modified the network structure and
input format (vector -> 3-D array)
CNN in Keras
Convolution
Max Pooling
Convolution
Max Pooling
Input
1 x 28 x 28
25 x 26 x 26
25 x 13 x 13
50 x 11 x 11
50 x 5 x 5
Flattened
1250
Fully connected
feedforward network
Output
ALPHAGO
Neural
Network
(19 x 19
positions)
Next move
19 x 19 matrix
Black: 1
white: -1
none: 0
Fully-connected feedforward
network can be used
But CNN performs much better
ALPHAGO’S POLICY NETWORK
Note: AlphaGo does not use Max Pooling.
The following is quotation from their Nature article:
CNN IN SPEECH RECOGNITION
Time
Frequency
Spectrogram
CNN
Image
The filters move in the
frequency direction.
CNN IN TEXT CLASSIFICATION
Source of image: http://citeseerx.ist.psu.ed
u/viewdoc/download?doi=10.1.1.703.6858
&rep=rep1&type=pdf
?

More Related Content

PPT
Deep-Learning presnetation by someone from the internet
PPT
Deep-Learning-2017-Lecture5CNN.ppt
PPT
Deep learning-2017-lecture5 cnn
PPT
Deep-Learning-2017-Lecture5CNN.ppt
PPT
Deep Learning Techniques like CNN and RNN
PPT
Deep-Learning-2017-Lecture5CNN.ppt
PPT
Deep learning-smaller neural network
PPT
Deep-Learning-Convolutional Neural Networks and Sequence Modeling.ppt
Deep-Learning presnetation by someone from the internet
Deep-Learning-2017-Lecture5CNN.ppt
Deep learning-2017-lecture5 cnn
Deep-Learning-2017-Lecture5CNN.ppt
Deep Learning Techniques like CNN and RNN
Deep-Learning-2017-Lecture5CNN.ppt
Deep learning-smaller neural network
Deep-Learning-Convolutional Neural Networks and Sequence Modeling.ppt

Similar to Deep Learning approach in Machine learning (20)

PPT
Deep-Learning-2017-Lecture5CNN.ppt
PPT
Deep-Learning-2017-Lecture5CNN.ppt
PPT
Deep-Learning-2017-Lecture5CNN.ppt
PPT
Deep-Learning-2017-Lecture5CNN.ppt
PPT
Deep-Learning
PPT
Deep-Learning-2017-Lecture5CNN.ppt
PPT
Deep-Learning-2017-Lecture5CNN.ppt
PPT
Convolutional Neural Networks definicion y otros
PPTX
Deep-LearningwithVisualExamplesExplaine.pptx
PDF
convolutional neural network and its applications.pdf
PPTX
Deep-Learning-2017-Lecture5CNN.pptx
PPT
digital image processing - convolutional networks
PPT
Introduction to Deep-Learning-CNN Arch.ppt
PDF
AI_Theory: Covolutional_neuron_network.pdf
PPTX
Machine learning algorithms like CNN and LSTM
PPT
Adv.TopicsAICNN.ppt
PDF
convolutional neural networks for machine learning
PDF
PDF
Practical Deep Learning Using Tensor Flow - Sandeep Kath
PPTX
Deep learning in E-Commerce Applications and Challenges (CNN)
Deep-Learning-2017-Lecture5CNN.ppt
Deep-Learning-2017-Lecture5CNN.ppt
Deep-Learning-2017-Lecture5CNN.ppt
Deep-Learning-2017-Lecture5CNN.ppt
Deep-Learning
Deep-Learning-2017-Lecture5CNN.ppt
Deep-Learning-2017-Lecture5CNN.ppt
Convolutional Neural Networks definicion y otros
Deep-LearningwithVisualExamplesExplaine.pptx
convolutional neural network and its applications.pdf
Deep-Learning-2017-Lecture5CNN.pptx
digital image processing - convolutional networks
Introduction to Deep-Learning-CNN Arch.ppt
AI_Theory: Covolutional_neuron_network.pdf
Machine learning algorithms like CNN and LSTM
Adv.TopicsAICNN.ppt
convolutional neural networks for machine learning
Practical Deep Learning Using Tensor Flow - Sandeep Kath
Deep learning in E-Commerce Applications and Challenges (CNN)
Ad

More from vipulkondekar (20)

PPTX
Free-Counselling-and-Admission-Facilitation-at-WIT-Campus.pptx
PPTX
Machine Learning Presentation for Engineering
PPTX
Exploring-Scholarship-Opportunities.pptx
PPTX
Documents-Required-for- Engineering Admissions.pptx
PPTX
Backpropagation algorithm in Neural Network
PPTX
Min Max Algorithm in Artificial Intelligence
PPTX
AO Star Algorithm in Artificial Intellligence
PPTX
A Star Algorithm in Artificial intelligence
PPTX
Artificial Intelligence Problem Slaving PPT
PPT
Artificial Neural Network and Machine Learning
PPT
Microcontroller Timer Counter Modules and applications
PPT
Microcontroller 8051 timer and counter module
PPT
Microcontroller 8051 Timer Counter Interrrupt
PPTX
Microcontroller Introduction and the various features
PPTX
Avishkar competition presentation template
PPTX
Introduction to prototyping in developing the products
PPTX
KNN Algorithm Machine_Learning_KNN_Presentation.pptx
PPTX
New Education Policy Presentation at VIT
PPT
Random Forest algorithm in Machine learning
PPTX
APPLICATIONS OF AI IN CYBERSECURITY.pptx
Free-Counselling-and-Admission-Facilitation-at-WIT-Campus.pptx
Machine Learning Presentation for Engineering
Exploring-Scholarship-Opportunities.pptx
Documents-Required-for- Engineering Admissions.pptx
Backpropagation algorithm in Neural Network
Min Max Algorithm in Artificial Intelligence
AO Star Algorithm in Artificial Intellligence
A Star Algorithm in Artificial intelligence
Artificial Intelligence Problem Slaving PPT
Artificial Neural Network and Machine Learning
Microcontroller Timer Counter Modules and applications
Microcontroller 8051 timer and counter module
Microcontroller 8051 Timer Counter Interrrupt
Microcontroller Introduction and the various features
Avishkar competition presentation template
Introduction to prototyping in developing the products
KNN Algorithm Machine_Learning_KNN_Presentation.pptx
New Education Policy Presentation at VIT
Random Forest algorithm in Machine learning
APPLICATIONS OF AI IN CYBERSECURITY.pptx
Ad

Recently uploaded (20)

PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PDF
R24 SURVEYING LAB MANUAL for civil enggi
PPTX
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
PPTX
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
PDF
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
PDF
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
PPTX
Construction Project Organization Group 2.pptx
PDF
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
PPT
Mechanical Engineering MATERIALS Selection
PPTX
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
PPTX
Geodesy 1.pptx...............................................
PDF
composite construction of structures.pdf
PPTX
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
PPTX
web development for engineering and engineering
PDF
Well-logging-methods_new................
PPTX
Sustainable Sites - Green Building Construction
PPTX
UNIT 4 Total Quality Management .pptx
PPTX
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
PPTX
additive manufacturing of ss316l using mig welding
UNIT-1 - COAL BASED THERMAL POWER PLANTS
R24 SURVEYING LAB MANUAL for civil enggi
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
Construction Project Organization Group 2.pptx
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
Mechanical Engineering MATERIALS Selection
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
Geodesy 1.pptx...............................................
composite construction of structures.pdf
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
web development for engineering and engineering
Well-logging-methods_new................
Sustainable Sites - Green Building Construction
UNIT 4 Total Quality Management .pptx
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
additive manufacturing of ss316l using mig welding

Deep Learning approach in Machine learning

  • 1. DEEP LEARNING  Supervised Deep Learning  Unsupervised Deep Learning  Semi supervised Deep Learning
  • 2. LECTURE 5 SMALLER NETWORK: CNN  We know it is good to learn a small model.  From this fully connected model, do we really need all the edges?  Can some of these be shared?
  • 3. CONSIDER LEARNING AN IMAGE:  Some patterns are much smaller than the whole image “beak” detector Can represent a small region with fewer parameters
  • 4. PLACES: THEY CAN BE COMPRESSED! WHAT ABOUT TRAINING A LOT OF SUCH “SMALL” DETECTORS AND EACH DETECTOR MUST “MOVE AROUND”. “upper-left beak” detector “middle beak” detector They can be compressed to the same parameters.
  • 5. A CONVOLUTIONAL LAYER A filter A CNN is a neural network with some convolutional layers (and some other layers). A convolutional layer has a number of filters that does convolutional operation. Beak detector
  • 6. CONVOLUTION 1 0 0 0 0 1 0 1 0 0 1 0 0 0 1 1 0 0 1 0 0 0 1 0 0 1 0 0 1 0 0 0 1 0 1 0 6 x 6 image 1 -1 -1 -1 1 -1 -1 -1 1 Filter 1 -1 1 -1 -1 1 -1 -1 1 -1 Filter 2 … … These are the network parameters to be learned. Each filter detects a small pattern (3 x 3).
  • 7. CONVOLUTION 1 0 0 0 0 1 0 1 0 0 1 0 0 0 1 1 0 0 1 0 0 0 1 0 0 1 0 0 1 0 0 0 1 0 1 0 6 x 6 image 1 -1 -1 -1 1 -1 -1 -1 1 Filter 1 3 -1 stride=1 Dot product
  • 8. CONVOLUTION 1 0 0 0 0 1 0 1 0 0 1 0 0 0 1 1 0 0 1 0 0 0 1 0 0 1 0 0 1 0 0 0 1 0 1 0 6 x 6 image 1 -1 -1 -1 1 -1 -1 -1 1 Filter 1 3 -3 If stride=2
  • 9. CONVOLUTION 1 0 0 0 0 1 0 1 0 0 1 0 0 0 1 1 0 0 1 0 0 0 1 0 0 1 0 0 1 0 0 0 1 0 1 0 6 x 6 image 1 -1 -1 -1 1 -1 -1 -1 1 Filter 1 3 -1 -3 -1 -3 1 0 -3 -3 -3 0 1 3 -2 -2 -1 stride=1
  • 10. CONVOLUTION 1 0 0 0 0 1 0 1 0 0 1 0 0 0 1 1 0 0 1 0 0 0 1 0 0 1 0 0 1 0 0 0 1 0 1 0 6 x 6 image 3 -1 -3 -1 -3 1 0 -3 -3 -3 0 1 3 -2 -2 -1 -1 1 -1 -1 1 -1 -1 1 -1 Filter 2 -1 -1 -1 -1 -1 -1 -2 1 -1 -1 -2 1 -1 0 -4 3 Repeat this for each filter stride=1 Two 4 x 4 images Forming 2 x 4 x 4 matrix Feature Map
  • 11. COLOR IMAGE: RGB 3 CHANNELS 1 0 0 0 0 1 0 1 0 0 1 0 0 0 1 1 0 0 1 0 0 0 1 0 0 1 0 0 1 0 0 0 1 0 1 0 1 0 0 0 0 1 0 1 0 0 1 0 0 0 1 1 0 0 1 0 0 0 1 0 0 1 0 0 1 0 0 0 1 0 1 0 1 0 0 0 0 1 0 1 0 0 1 0 0 0 1 1 0 0 1 0 0 0 1 0 0 1 0 0 1 0 0 0 1 0 1 0 1 -1 -1 -1 1 -1 -1 -1 1 Filter 1 -1 1 -1 -1 1 -1 -1 1 -1 Filter 2 1 -1 -1 -1 1 -1 -1 -1 1 1 -1 -1 -1 1 -1 -1 -1 1 -1 1 -1 -1 1 -1 -1 1 -1 -1 1 -1 -1 1 -1 -1 1 -1 Color image
  • 12. 1 0 0 0 0 1 0 1 0 0 1 0 0 0 1 1 0 0 1 0 0 0 1 0 0 1 0 0 1 0 0 0 1 0 1 0 image convolution -1 1 -1 -1 1 -1 -1 1 -1 1 -1 -1 -1 1 -1 -1 -1 1 1 x 2 x … … 36 x … … 1 0 0 0 0 1 0 1 0 0 1 0 0 0 1 1 0 0 1 0 0 0 1 0 0 1 0 0 1 0 0 0 1 0 1 0 Convolution v.s. Fully Connected Fully- connected
  • 13. 1 0 0 0 0 1 0 1 0 0 1 0 0 0 1 1 0 0 1 0 0 0 1 0 0 1 0 0 1 0 0 0 1 0 1 0 6 x 6 image 1 -1 -1 -1 1 -1 -1 -1 1 Filter 1 1 2 3 … 8 9 … 13 14 15 … Only connect to 9 inputs, not fully connected 4 : 10: 16 1 0 0 0 0 1 0 0 0 0 1 1 3 fewer parameters!
  • 14. 1 0 0 0 0 1 0 1 0 0 1 0 0 0 1 1 0 0 1 0 0 0 1 0 0 1 0 0 1 0 0 0 1 0 1 0 1 -1 -1 -1 1 -1 -1 -1 1 Filter 1 1 : 2 : 3 : … 7 : 8 : 9 : … 13 : 14 : 15 : … 4 : 10: 16 : 1 0 0 0 0 1 0 0 0 0 1 1 3 -1 Shared weights 6 x 6 image Fewer parameters Even fewer parameters
  • 15. THE WHOLE CNN Fully Connected Feedforward network cat dog …… Convolution Max Pooling Convolution Max Pooling Flattened Can repeat many times
  • 16. MAX POOLING 3 -1 -3 -1 -3 1 0 -3 -3 -3 0 1 3 -2 -2 -1 -1 1 -1 -1 1 -1 -1 1 -1 Filter 2 -1 -1 -1 -1 -1 -1 -2 1 -1 -1 -2 1 -1 0 -4 3 1 -1 -1 -1 1 -1 -1 -1 1 Filter 1
  • 17. WHY POOLING  Subsampling pixels will not change the object Subsampling bird bird We can subsample the pixels to make image smaller fewer parameters to characterize the image
  • 18. A CNN COMPRESSES A FULLY CONNECTED NETWORK IN TWO WAYS:  Reducing number of connections  Shared weights on the edges  Max pooling further reduces the complexity
  • 19. MAX POOLING 1 0 0 0 0 1 0 1 0 0 1 0 0 0 1 1 0 0 1 0 0 0 1 0 0 1 0 0 1 0 0 0 1 0 1 0 6 x 6 image 3 0 1 3 -1 1 3 0 2 x 2 image Each filter is a channel New image but smaller Conv Max Poolin g
  • 20. THE WHOLE CNN Convolution Max Pooling Convolution Max Pooling Can repeat many times A new image The number of channels is the number of filters Smaller than the original image 3 0 1 3 -1 1 3 0
  • 21. THE WHOLE CNN Fully Connected Feedforward network cat dog …… Convolution Max Pooling Convolution Max Pooling Flattened A new image A new image
  • 22. FLATTENING 3 0 1 3 -1 1 3 0 Flattened 3 0 1 3 -1 1 0 3 Fully Connected Feedforward network
  • 23. Only modified the network structure and input format (vector -> 3-D tensor) CNN in Keras Convolution Max Pooling Convolution Max Pooling input 1 -1 -1 -1 1 -1 -1 -1 1 -1 1 -1 -1 1 -1 -1 1 -1 There are 25 3x3 filters. … … Input_shape = ( 28 , 28 , 1) 1: black/white, 3: RGB 28 x 28 pixels 3 -1 -3 1 3
  • 24. Only modified the network structure and input format (vector -> 3-D array) CNN in Keras Convolution Max Pooling Convolution Max Pooling Input 1 x 28 x 28 25 x 26 x 26 25 x 13 x 13 50 x 11 x 11 50 x 5 x 5 How many parameters for each filter? How many parameters for each filter? 9 225= 25x9
  • 25. Only modified the network structure and input format (vector -> 3-D array) CNN in Keras Convolution Max Pooling Convolution Max Pooling Input 1 x 28 x 28 25 x 26 x 26 25 x 13 x 13 50 x 11 x 11 50 x 5 x 5 Flattened 1250 Fully connected feedforward network Output
  • 26. ALPHAGO Neural Network (19 x 19 positions) Next move 19 x 19 matrix Black: 1 white: -1 none: 0 Fully-connected feedforward network can be used But CNN performs much better
  • 27. ALPHAGO’S POLICY NETWORK Note: AlphaGo does not use Max Pooling. The following is quotation from their Nature article:
  • 28. CNN IN SPEECH RECOGNITION Time Frequency Spectrogram CNN Image The filters move in the frequency direction.
  • 29. CNN IN TEXT CLASSIFICATION Source of image: http://citeseerx.ist.psu.ed u/viewdoc/download?doi=10.1.1.703.6858 &rep=rep1&type=pdf ?