AiTeky Original Interactive Learning & Practice Advanced
AutoML and model search: budgets, search strategies, the winner's curse and the bake-off
Write the core of an AutoML tool yourself and learn to judge one: a search space and a budget, grid against random search, successive halving, why the best score of a search is too good, preprocessing and ensembles, and a bake-off that catches a leaked column.
AutoML promises "the best model from a table". A good tool does save days of trial and error, and a careless reading of its report can lead a team to ship a model that is worse than it looked, or that was never allowed to exist (one that uses information from the future). The tool is not magic. It is a loop that tries pipelines, scores them and keeps the best, and every weakness of the loop is something you can measure.
This course builds the loop with scikit-learn, numpy and pandas only, so everything runs in the browser. You write a search space and a random search and see how much one search depends on luck; compare a grid with random search at the same budget; run successive halving, which judges many pipelines on a small slice of the data; measure the winner's curse, the way the best score of many trials flatters the winner, with a search on data that contain no signal at all and with nested cross-validation; see how preprocessing choices and ensembles change the result and what they cost to run; and finish with a bake-off for a loan-default model in which an AutoML-style search appears to score 0.99 because of a leaked column.
All the data are simulated with fixed seeds, so the truth is known and the claims can be checked. Some results are not what a sales page would show: a default forest beat the first 24-trial search, and a plain logistic regression matched the ensemble in the final bake-off. The lessons report what they got.
You need the machine learning course, and the ensembles and boosting course helps.
- Learn lessons explain one idea at a time and let you compute it.
- Industry ready lessons decide and plan. Each ends with the interview questions that go with it.
- βΆ Run code in your browser. Nothing to install
- β Exercises that check themselves
- π Tap a word to see what it means
Locked. Sign up free
Learn
Understand each idea with everyday examples. No coding background needed.
- 01 50 min π AiTeky Pass What AutoML automates: a search space, a budget and a score Write the core of an AutoML tool in 40 lines (a search space of pipelines, random sampling, cross-validated scoring), run it with a budget of 24 trials against a default model, and see how much the result depends on the budget and on the luck of the search.
- 02 50 min π AiTeky Pass Grid or random? Spending a budget of 27 trials where the score actually changes Score a dense table of 480 decision-tree settings, find which of three hyperparameters move the score, then compare a 3-by-3-by-3 grid with 27 random draws over 500 repeats, and see why random search tries more values of the setting that matters and why a scale needs a logarithm.
- 03 55 min π AiTeky Pass Successive halving: judge many pipelines cheaply, spend the budget on the survivors Score 60 random pipelines on 300, 600 and 1,200 customers, check that the cheap scores rank the pipelines like the full ones, then compare successive halving with random search at the same compute over 2,000 simulated runs, and find which pipelines the cheap round misjudges.
- 04 55 min π AiTeky Pass The winner's curse: why the best score from a search is too good, and nested validation Search pipelines on data with no signal and on data with weak and strong signal, re-score each search's winner on a fresh sample of the same size to measure how much the best score flatters it, and use nested cross-validation to get an honest score for the whole search.
- 05 55 min π AiTeky Pass Preprocessing choices and ensembles: what else an AutoML tool searches, and what it costs Show how much the choice of scaling changes two model families on raw features of very different scales, build a greedy ensemble from the out-of-fold predictions of 16 pipelines, test it against the best single pipeline and a stacked model on 800 untouched customers with an interval, and count what the ensemble costs to keep running.
Industry ready
Real problems from real jobs, and the questions interviewers ask about them.

