
Adam + RMSprop (61 Pages)
You can already ask an AI to write you an Adam training loop. The problem is knowing why RMSprop without bias correction takes a first step thirty times longer than the learning rate you set, why the momentum that smooths noisy gradients makes Adam overshoot and ring on a clean problem, or why the learning rate you copied from a tutorial is really a distance every weight will move on its very first step. None of that is visible from model.fit(). This is the course that gives you that judgment.
Five parts, one algorithm, no gaps:
• Part 1 — Intro. Why one shared learning rate fails when some directions are steep and others nearly flat, how a running average of the gradient (momentum) and a running average of its square (RMSprop) combine into Adam, and why bias correction makes the very first step exactly as long as the learning rate. The intuition before the notation.
• Part 2 — By Hand. A complete worked example: a two-parameter bowl ten times steeper in one direction than the other, started at the origin, and three full Adam iterations, gradients, running averages, bias corrections and steps, every number shown. Nothing waved away, nothing left "as an exercise." You watch both coordinates move by exactly the learning rate on step one, and see RMSprop, given the same settings, jump to more than twice the starting error.
• Part 3 — In Excel. The same example built out in a spreadsheet you can open and poke at, one iteration per row, with Adam and RMSprop running side by side — and watch two hundred iterations of convergence unfold as you change the learning rate, switch off momentum or shorten RMSprop's memory.
• Part 4 — In Python. A clean, executable, verified reference implementation that reproduces the hand calculation and checks its own answer against the known minimum and a brute-force grid search — the known-good version you can check any other code against. One switch adds noisy gradients, so you can see exactly where Adam's averaging earns its keep.
• Part 5 — With AI. A tested prompt that directs an AI assistant to carry this same algorithm to your problem, plus the understanding to catch it 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 training problem, you'll know how to read the learning rate as a step length, check that the first update has exactly the size it should, choose between Adam and RMSprop on purpose, and tell when the answer is right.