9.0 CNN-Overview PDF
9.0 CNN-Overview PDF
1
Deep Learning Srihari
Plan of discussion
3
Deep Learning Srihari
w =⎨
⎪⎪ (2) (2)
T T
⎡W (2)W (2)W (2) ⎤ ,W (2) = ⎡W (2)W (2)W (2) ⎤ ,W (2) = ⎡W (2)W (2)W (2) ⎤
T
⎪⎪ W columns :W1
= ⎢⎣ 11 12 13 ⎥⎦ 2 ⎢⎣ 21 22 23 ⎥⎦ 3 ⎢⎣ 31 32 33 ⎥⎦
⎩
First Network layer Network layer output In matrix multiplication notation
5
Deep Learning Srihari
6
Deep Learning Srihari
7
Deep Learning Srihari
8
https://towardsdatascience.com/a-comprehensive-guide-to-convolutional-neural-networks-the-eli5-way-3bd2b1164a53
Deep Learning Srihari
• Conv2D
• Arguments
• filters: Integer, the dimensionality of the output space (i.e. the number of output filters in the convolution).
• kernel_size: An integer or tuple/list of 2 integers, specifying the height and width of the 2D convolution
window. Can be a single integer to specify the same value for all spatial dimensions.
• strides: An integer or tuple/list of 2 integers, specifying the strides of the convolution along the height and
width. Can be a single integer to specify the same value for all spatial dimensions. Specifying any stride value
!= 1 is incompatible with specifying any dilation_rate value != 1.
• padding: one of "valid" or "same" (case-insensitive). Note that "same" is slightly inconsistent across
backends with strides != 1, as described here
• data_format: A string, one of "channels_last" or "channels_first". The ordering of the dimensions in the
inputs. "channels_last" corresponds to inputs with shape (batch, height, width, channels) while
"channels_first" corresponds to inputs with shape (batch, channels, height, width). It defaults to the
image_data_format value found in your Keras config file at ~/.keras/keras.json. If you never set it, then it will
be "channels_last".
Runtime of Traditional vs Convolutional NetworksSrihari
Deep Learning
• What convolution is
• Motivation behind using convolution in a neural network
• Pooling, which almost all convolutional networks employ
• Usually the operation used in a convolutional neural network
does not correspond precisely to convolution in math
• We describe several variants on convolution function used in practice
• Making convolution more efficient
• Convolution networks stand out as an example of
neuroscientific principles in deep learning
• Very deep convolutional network architectures
11