top of page
Backpropagation (94 Pages)

Backpropagation (94 Pages)

$39.00Price

You can already ask an AI to build and train a neural network. The problem is knowing whether it actually learned anything. The backward pass may have a sign error that the loss curve hides. The learning rate may be so large that the loss is bouncing instead of falling. Two hidden neurons may have started as identical copies, so they can never learn different jobs. Or the network may have settled in a local minimum and is confidently giving the wrong answer for one input in four. This is the course that gives you the judgment to tell.


Five parts, one algorithm, no gaps:

  • Part 1 — Intro. How the chain rule, the output delta and the hidden deltas turn one number, the error, into a precise adjustment for every weight in the network. Why the method was discovered several times before it became famous in 1986, what momentum, Adam and careful initialization are trying to fix, and where backpropagation is the weaker choice compared with genetic algorithms, particle swarms and second-order methods. The intuition before the notation.

  • Part 2 — By Hand. A complete worked example: a 2-2-1 network learning XOR, the problem a single-layer network famously cannot solve. You work three full epochs on paper: four patterns forward, every weighted sum and sigmoid, every delta backward, every gradient as a delta times a signal, then all nine weights updated. After that you check every gradient against a finite-difference estimate, so you know the arithmetic is right. Every product, every exponential and every substitution is on the page. Nothing is waved away, and nothing is left “as an exercise.”

  • Part 3 — In Excel. The same network built in a spreadsheet with live formulas and no pasted values, carried on for 600 epochs, so you can watch the loss sit on a long plateau and then plunge as the network finds XOR. You’ll see for yourself what doubling the learning rate does, what happens when you teach it OR instead, and why a network whose hidden neurons start as identical copies can never succeed. A built-in gradient-check sheet confirms that every derivative is right.

  • Part 4 — In Python. A clean, executable reference implementation in plain numpy. It checks its own gradients against finite differences, checks its trained network against the XOR truth table, and matches the spreadsheet epoch for epoch. This is the known-good version you can test any other code against. Then you’ll start it from random weights and watch one seed find the answer while another gets permanently stuck.

  • Part 5 — With AI. A tested prompt that directs an AI assistant to carry the same method to your problem, plus the understanding to catch the assistant when it’s wrong.


By the end you won’t just have working code. You’ll have followed the algorithm from first principles through a hand calculation, a spreadsheet and production Python. So when you point an AI at your own problem, you’ll know how to confirm that the gradients are right before trusting the loss curve. You’ll recognize a learning rate that is too large, and tell a plateau worth waiting out from a local minimum that will never let go. And you’ll know why starting weights must differ and why 1/(1 + loss) is a safe score where 1/loss is not. The worked example includes starting points that fail: identical hidden neurons, an oversized learning rate, and a random start that converges to the wrong answer. Those are the mistakes backpropagation invites, and it is better to meet them on paper than in production.


Written for practicing engineers and STEM professionals who’d rather understand a method than trust a black box.

    bottom of page