一.Convolutional Neural Networks: Step by Step
Welcome to Course 4’s first assignment! In this assignment, you will implement convolutional (CONV) and pooling (POOL) layers in numpy, including both forward propagation and (optionally) backward propagation.
Notation:
-
Superscript [ l ] [l] [l] denotes an object of the l t h l^{th} lth layer.
- Example: a [ 4 ] a^{[4]} a[4] is the 4 t h 4^{th} 4th layer activation. W [ 5 ] W^{[5]} W[5] and b [ 5 ] b^{[5]} b[5] are the 5 t h 5^{th} 5th layer parameters.
-
Superscript ( i ) (i) (i) denotes an object from the i t h i^{th} ith example.
- Example: x ( i ) x^{(i)} x(i) is the i t h i^{th} ith training example input.
-
Lowerscript i i i denotes the i t h i^{th} ith entry of a vector.
- Example: a i [ l ] a^{[l]}_i ai[l] denotes the i t h i^{th} ith entry of the activations in layer l l l, assuming this is a fully connected (FC) layer.
-
n H n_H nH, n W n_W nW and n C n_C nC denote respectively the height, width and number of channels of a given layer. If you want to reference a specific layer l l l, you can also write n H [ l ] n_H^{[l]} nH[l], n W [ l ] n_W^{[l]} nW[l], n C [ l ] n_C^{[l]} nC[l].
-
n H p r e v n_{H_{prev}} nHprev, n W p r e v n_{W_{prev}} nWprev and n C p r e v n_{C_{prev}} nCprev denote respectively the height, width and number of channels of the previous layer. If referencing a specific layer l l l, this could also be denoted n H [ l − 1 ] n_H^{[l-1]} nH[l−1], n W [ l − 1 ] n_W^{[l-1]} nW[l−1], n C [ l − 1 ] n_C^{[l-1]} nC[l−1].