All lessons in Machine Learning Engineering: Reliable Predictive Models

Small Neural Networks and Backpropagation

Trace the chain rule through a small network and compare against a tabular baseline.

35 minutes · Free with an account · preview

What you will learn

  • Compute a forward pass and one backpropagation step by hand for a network with two ReLU hidden units and a sigmoid output.
  • Explain why the gradient of log loss with respect to the output score is predicted probability minus label, and how a ReLU unit can block gradient flow.
  • Set up a leakage-free comparison between a small network and the logistic baseline on the dispatch data.

The carrier's late-delivery models so far have been either linear in their inputs or built from trees. A multilayer perceptron (MLP) is a third option: a stack of learned linear maps separated by simple nonlinear functions. This optional lesson recaps the logistic regression pieces it needs, traces the arithmetic of one training step on a single dispatch record, and then shows how to compare a small network honestly against the tabular baselines. It does not assume the other optional lessons.

Choose another lesson