
Feature Selection Methods (57 Pages)
You can already ask an AI to write you a feature selection routine. The problem is knowing why a ranking by relevance alone happily keeps two sensors that measure the same thing, why a subset that scores well on the data used to choose it can fall apart on new data, or why a greedy search can stop one swap short of the best subset. 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 adding features can make a predictor worse, why a highly relevant feature can be worthless once a near-copy of it is already chosen, and how filters, wrappers and embedded methods such as the lasso each decide what to keep. The intuition before the notation.
· Part 2 — By Hand. A complete worked example: eight production batches, six candidate sensors, all 21 correlations, and four full iterations of correlation-guided forward selection — relevance sums, redundancy sums and merits, every number shown. Nothing waved away, nothing left “as an exercise.” You watch a highly relevant sensor lose to an independent one 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 iteration per block, so you see exactly which candidate wins each round — and watch all six iterations and all 63 possible subsets recompute as you change the sensor readings or the stopping tolerance.
· Part 4 — In Python. A clean, executable, verified reference implementation that checks its own answer by brute force against all 63 subsets — 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 data, you'll know how to spot redundant features before they inflate your model, check a greedy answer against an exhaustive one, and tell when the answer is right.