Neural Networks And Deep Learning Web Book
Chapter 1
Sigmoid neuron: a type of neuron where the weights and bias changes have a capped/limited impact on the neuron's output. This allows for more effective learning. Feedforward: a neural network type where the information is only fed forward towards output. not back towards input. recurrent neural networks: networks that do allow for loops of feedback.
Cost Function: (or loss/objective function)
- denotes collection of all weights in network
- all biases
- the total number of training inputs
- the vector of outputs
- training input
- the output, a 10-D vector
- is all training inputs summed
- denotes the usual length for a vector
- the quadratic cost function If is large the training is doing poorly, but if its then it is doing great. is the learning rate for the model.
Chapter 2
Back propagation: an algorithm for calculating the gradient of the cost function.
- denotes the weight for the connection from the neuron in the layer to the neuron in the layer.
- For Bias: is the bias of the neuron in the layer.
- The activation of a layer from the last, from as follows:
Vectorization: apply a function, such as to every element in a vector , so to denote this element-wise application of the function, or to say:- Here the sum is over all neurons $k$ in the $(l-1)^{th}$ layer. - So is rewritten in the smaller vectorized form: Weighted input: While computing the weighted input is computed: , and thus can also be written as elementwise product: Where each element is multiplied by the corresponding element in another matrix Hadamard product: Elementwise multiplication of two vectors: , so Error in output layer: contains these components: . Where measures the rate the cost is changing as a function of the output activation. And measures rate of activation function is changing at . Rewritten in the matrix basic form: , where expresses the rate of change of . Changes propagate through later layers and cause the cost to change by: .
The error for neuron in layer : , so that are the errors associate with layer . The back propagation will allow for computing the for every layer. Plan of attack: using back propagation's 4 equations, can compute the error for each level and therefore the gradient cost function.
An equation for the error in the output layer: so has: the part measures the speed the cost changes.