Lecture 3 - CNNs Flashcards
Artificial Intelligence
Technique to make computer intelligent
Contains Machine Learning
Machine Learning
A technique that enables machines to learn from experience
Contains Deep Learning
Deep Learning
A subset of machine learning based on artificial neural networksF
Layer
A function.
Deep networks are stacked layers.
Convolution
Take a kernel (key) matrix and scan it over the image by multiplying the elements in the key with the corresponding image value. Add all up.
Repeat for all possible locations
Padding
Add numbers to the edge of the matrix to allow the same output dimensions to be retained in convolution.
Stride
The number of pixels shifted over the input matrix
(Think like how far the matrix jumps)
Output volume height/width calculation (Feature Maps)
( (I-F+2P)/S ) +1
I is an input height/width
F is the corresponding filter height/width
P is the padding
S is the stride
Activation Layer
Operation to make model non-linear (increase representation ability). ReLU etc
ReLU = max(0,x)
Leaky ReLU = max(0.1x,x)
Sigmoid = 1/(1+e^-x)
ELU = x above 0 and learning rate*((e^x)-1) equal to and below 0
No learnable parameters
Normalisation layer
Accelerate training through a step that fixes the means and variances of each layer’s inputs
No learnable parameters
Pooling Layer
Reduces the spatial dimension.
Max pooling, for example.
Fully Connected Layer
Connect every neuron in one layer to every neuron in another layer
Learnable parameters = Input dimensions * Output dimensions + output dimensions
Convolutional Layer learnable parameters
Ci * Fh * Fw * Co
WHere F is a filter size dimension (height and width) and C is the channels (i for input o for out)