

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


This document has the purpose of discussing a new standard for deep learning mathematical notations.
General comments:
· superscript (i) will denote the ith^ training example while superscript [l] will denote the lth^ layer
Sizes:
·m : number of examples in the dataset
·nx : input size
·ny : output size (or number of classes)
·n[ hl ]: number of hidden units of the lth^ layer
In a for loop, it is possible to denote nx = n[0] h and ny = nh[number of layers +1].
·L : number of layers in the network.
Objects:
·X ∈ Rnx×m^ is the input matrix
·x(i)^ ∈ Rnx^ is the ithexample represented as a column vector
·Y ∈ Rny^ ×m^ is the label matrix
·y(i)^ ∈ Rny^ is the output label for the ith^ example
·W [l]^ ∈ Rnumber of units in next layer^ ×^ number of units in the previous layer^ is the weight matrix,superscript [l] indicates the layer
·b[l]^ ∈ Rnumber of units in next layer^ is the bias vector in the lth^ layer
·yˆ ∈ Rny^ is the predicted output vector. It can also be denoted a[L]^ where L is the number of layers in the network.
Common forward propagation equation examples:
a = g[l](Wxx(i)^ + b 1 ) = g[l](z 1 ) where g[l]^ denotes the lth^ layer activation function
ˆy(i)^ = sof tmax(Whh + b 2 )
· General Activation Formula: a[ jl ]= g[l](
k w
[l] jka
[l−1] k +^ b
[l] j ) =^ g [l](z[l] j )
· J(x, W, b, y) or J(ˆy, y) denote the cost function.
Examples of cost function:
· JCE (ˆy, y) = −
∑m i=0 y
(i) (^) log ˆy(i)
· J 1 (ˆy, y) =
∑m i=0 |^ y (i) (^) − ˆy(i) (^) |
For representations:
· nodes represent inputs, activations or outputs
· edges represent weights or biases
Here are several examples of Standard deep learning representations
Figure 1: Comprehensive Network: representation commonly used for Neural
Networks. For better aesthetic, we omitted the details on the parameters (w [l] ij and b[ il ]etc...) that should appear on the edges
Figure 2: Simplified Network: a simpler representation of a two layer neural network, both are equivalent.