Docsity

Deep Learning Notes For Beginners, Summaries of Mathematics

Toggle sidebar
bg1
Standard notations for Deep Learning
This document has the purpose of discussing a new standard for deep learning
mathematical notations.
1 Neural Networks 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[l]
h: number of hidden units of the lth layer
In a for loop, it is possible to denote nx=n[0]
hand ny=nh[number of layers +1].
·L: number of layers in the network.
Objects:
·X∈Rnx×mis the input matrix
·x(i)∈Rnxis the ithexample represented as a column vector
·Y∈Rny×mis the label matrix
·y(i)∈Rnyis 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∈Rnyis 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)+b1) = g[l](z1) where g[l]denotes the lth layer activation
function
ˆy(i)=softmax(Whh+b2)
·General Activation Formula: a[l]
j=g[l](Pkw[l]
jk a[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) = −Pm
i=0 y(i)log ˆy(i)
·J1(ˆy , y) = Pm
i=0 |y(i)−ˆy(i)|
1
pf2

Partial preview of the text

Download Deep Learning Notes For Beginners and more Summaries Mathematics in PDF only on Docsity!

Standard notations for Deep Learning

This document has the purpose of discussing a new standard for deep learning mathematical notations.

1 Neural Networks 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) (^) |

2 Deep Learning representations

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.