tags: deep learning

Some notations

  • means the weight of the neuron in connected to the neuron
  • means the bias of the neuron in the layer
  • to get a neuron activation
  • Hadamard product is the multiplying corresponding elements in two matrices

First Equation

We will consider the rate of change of the cost function multiplied by the activation to tell us the amount of error. This equation seems quite natural if is changed by an amount this will lead to change in the sigmoid function with a some amount, multiplying the change by the change in the the cost function by amount , leads to the amount of error.

Second Equation

Backpropagation and gradient descent

  • Input a set of training examples
    • For each training example x : Set the corresponding input activation ax,1, and perform the following steps:
    • Feedforward: For each l=2,3,…,L compute zx,l=wlax,l−1+bl and ax,l=σ(zx,l)- .
    • Output error δx,L : Compute the vector δx,L=∇aCx⊙σ′(zx,L)- .
    • Backpropagate the error: For each l=L−1,L−2,…,2 compute δx,l=((wl+1)Tδx,l+1)⊙σ′(zx,l)- - .
  • Gradient descent: For each l=L,L−1,…,2 update the weights according to the rule wl→wl−ηm∑xδx,l(ax,l−1)T, and the biases according to the rule bl→bl−ηm∑xδx,l.

NOTE: The derivative of sum is the sum of derivatives