Observe the chain rule of calculus in action. Step through forward activation passes, compute binary cross-entropy loss, and propagate analytical partial derivatives ∂L/∂W to update synaptic weights in real-time.
By combining non-linear activation functions (ReLU, GELU) with stacked linear matrix transformations, a single hidden layer can approximate any continuous decision boundary.
Sigmoid saturates at both tails with σ'(z) ≈ 0, causing backpropagated gradients to exponentially vanish in deeper networks. ReLU solves this with constant unit derivative ∂a/∂z = 1 for z > 0.
Full Batch Gradient Descent computes exact average gradients over all N data points, providing smooth and deterministic convergence towards local loss minima.