
Ensemble Methods (62 Pages)
You can already ask an AI to write you an ensemble. The problem is knowing why boosting keeps chasing a few mislabeled points until it overfits, why a hundred trees that all make the same mistake are no better than one, or why one learning-rate setting you didn't understand is quietly trading accuracy for generalization. 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 a committee of weak, imperfect rules can beat any single strong one, why the members must make different mistakes for the vote to help, and how bagging, random forests, boosting and stacking each create those differences. The intuition before the notation.
· Part 2 — By Hand. A complete worked example: ten labeled readings, eighteen candidate decision stumps, and three full rounds of AdaBoost — weighted errors, vote weights, reweighting and the running score, every number shown. Nothing waved away, nothing left "as an exercise." You watch the vote go from two mistakes to none and prove the algorithm to yourself.
· Part 3 — In Excel. The same example built out in a spreadsheet you can open and poke at, one round per row, so you see exactly which points gain weight each round — and watch twenty rounds of convergence unfold as you change the readings and labels.
· Part 4 — In Python. A clean, executable, verified reference implementation that checks its own answer by brute force — the known-good version you can check any other code against.
· 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 classification problem, you'll know how to choose a base learner on purpose, watch the loss rather than just the error count, and tell when the answer is right.