This lesson breaks down how neural networks learn by conceptually bridging the loss function, the backpropagation of error, and the iterative gradient descent update rule.
(a) Network Definition
Define a one-hidden-layer network with weights, biases, and activation function.
(b) Loss Definition
Define the empirical risk as the average squared error over the training set.
(c) Gradient via Backprop
Compute partial derivatives using the chain rule, moving backward from the output layer to the input.
(d) Update Rule
Update the parameter vector $\theta$ by moving in the negative gradient direction scaled by the learning rate $\eta$.
Original question
Explain how gradient descent trains a simple neural network. Describe the loss, the gradient and the weight update rule.
Ask me anything about this lesson — I'll answer using what we just covered.