Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
AutoML and Hyperparameter Tuning in Python: FLAML, PyCaret
New

AutoML and Hyperparameter Tuning in Python: FLAML, PyCaret

Build the baseline first, then run FLAML, TPOT, H2O and PyCaret against it under a declared budget. Report it honestly.
Created byReal Numbers
Last updated 11/2026
English
English

What you'll learn

  • Build a hand-built, deliberately untuned baseline and report every automated result against it - score, baseline, signed delta and the budget that bought it
  • Fix a metric per problem and defend the metric you rejected, rather than optimising whatever the tool defaults to
  • Split once, fold once, fit preprocessing inside the fold, and score a test set exactly once without letting it pick the model
  • Call a result inside the noise when it does not beat the baseline by more than the fold standard deviation
  • Declare a compute budget before a run and report wall-clock seconds and candidates evaluated together, because seconds do not travel between machines
  • Size a grid before running it, and say why random search resolves every dimension at the full budget while a grid resolves each to a root of it
  • Run Bayesian, evolutionary and successive-halving search over one unchanged space at one matched budget, and read the trace rather than quoting the best score
  • Point FLAML, TPOT, H2O, AutoGluon and AutoViML at the same problem and compare them honestly at a stated budget
  • Run PyCaret end to end with every contract-breaking default overridden and asserted, and know which of tune, blend and stack keeps the comparison valid
  • Handle the non-tabular corners - automated visualisation, text classification, architecture search, Keras Tuner, forecasting - and spot a tool-supplied baseline
  • Audit an AutoML run you did not do, and find the leaked column a search will exploit before it reaches production
  • Pin an AutoML stack by attempting the install, and recognise a library whose dependency pins have outlived it

Course content

9 sections • 46 lectures • 6h 42m total length
  • Welcome, and how to use this course4:22
    How the course is structured, what you need installed, how the hands-on lectures work, and how to get the most out of it.

Requirements

  • Comfortable writing Python - functions, classes, and reading someone else's hundred-line module
  • You have trained a model with scikit-learn and know what cross-validation and a hyperparameter are. Everything about search is built from first principles here
  • A machine running Python 3.10 or later. No GPU, no cloud account, no API key and no network access is needed by any lab
  • Willingness to create three virtual environments. PyCaret cannot share one with TPOT or with AutoTrain, and the course explains why rather than hiding it
  • Useful but not required: Course 01 for the end-to-end workflow this course tunes inside, and Course 03 for tracking the experiments it generates

Description

This course contains the use of artificial intelligence.
Most AutoML teaching shows you a leaderboard and stops. This course starts from a harder position: an AutoML result reported without a baseline is not a result. So the first thing you build is not a framework call. It is a hand-built, deliberately untuned gradient-boosted pipeline, and every framework from the fourth section onward is reported against it - same data, same splitter, same seed, same folds, same metric, under a compute budget declared before the run.

That reporting discipline is what the course is actually selling, because it is the part that survives. Hyperparameter search arithmetic has not moved in a decade; the libraries move constantly. Learn the method and you can evaluate the framework that replaces all five of these.

Everything runs on one invented organization: Brackwater Mutual, a mid-market UK general insurer. Two benchmark problems, used from the first section to the last so that every result stays comparable - will this policy lapse at renewal, which is imbalanced binary classification, and what will this claim cost to settle, which is long-tailed regression in pounds. The data is synthetic, seeded and regenerated by a script that ships with the course. Nothing is downloaded, so nothing rots when a URL moves.

The contract is explicit and it binds the whole course. One metric per problem, with the metric it was chosen over stated out loud: average precision rather than accuracy, which a predict-nobody-lapses model wins, and mean absolute error in pounds rather than R squared, which rewards getting the mean right while the tail does the damage. One stratified fold scheme, one seed, preprocessing fitted inside the fold. A test set split off before any model existed, scored once, and never allowed to influence a decision - including the decision about which model to report.

And a bar for what counts as a win: beat the baseline by more than the fold standard deviation. Below that, the honest report is that the result is inside the noise. You will see that verdict more often than a course trying to sell you a tool would ever admit, and the honest finding is sometimes that the baseline held.

Before any framework appears, you do the search by hand. What a space actually is and why nothing outside it can be found. Why an exhaustive grid stops being defensible past about three dimensions, with the fit count printed before the run is allowed to start. Why random search usually wins, argued from arithmetic rather than folklore. Cross-validation done so that a later result is trustworthy, and nested cross-validation to score the picking procedure rather than the pick. Then the search that learns from its own history: a Bayesian surrogate and its acquisition rule, an evolutionary population, and successive halving, which is the other lever - not choosing configurations more cleverly but taking the budget away from most of them early.

Then the frameworks, each pointed at the same problem at a stated budget. FLAML, which spends its budget where it buys the most accuracy per second. TPOT, which changes what is being searched from a configuration to a whole pipeline and hands you scikit-learn source you then own. H2O, which puts a Java cluster beside your process and returns a leaderboard of model families rather than one tuned model - and H2O Flow, the same run through a browser with no Python at all. AutoGluon, the heaviest of them. AutoViML, whose pitch is that the win is in the features.

PyCaret gets a section to itself, because it is the only tool here that tries to be the whole workflow rather than one step in it. You run the comparison end to end with every default that contradicts the contract overridden and then asserted rather than assumed, tune, blend and stack it, and find out which of those three calls still produces a number comparable with everything before it. Then what you actually ship, in the one order that keeps the test score honest - because finalising refits on the holdout and quietly turns your single honest test score into training data.

Past the tabular assumptions: automated visualisation that produces no score at all and therefore cannot be measured against anything, automated text classification with an n-gram baseline fitted first, neural architecture search as the same two questions with layers in place of learning rates, Keras Tuner over a fixed skeleton, and automated forecasting - the one place in the course where the tool hands you a baseline instead of making you build one, which is worth understanding before you quote its leaderboard.

Then the section no tool does for you. Reading a run you did not do, and the questions that make a handed-over leaderboard answerable. A leakage trap that was planted in the data in the first section and springs here: an operational column written only after the renewal outcome is known, which AutoML exploits enthusiastically, because a search cannot tell an artefact from a relationship. What the compute actually cost. And whether this replaces the data scientist, answered without flattery in either direction and without quoting an employment statistic.

The labs are offline and they import one shared contract module rather than redefining it, which is why sixteen sets of results stay comparable. Each one runs top to bottom with no edits, and exits 0 when every assertion passed, 1 on a failure and 2 when a dependency is missing, printing the exact install line. No API key, no cloud account, no GPU, no network.

The course is also honest about the state of this ecosystem, which is a subject rather than an inconvenience. Every version here was pinned by attempting an install, not from memory or from a package index, because an index will happily serve you a version that cannot be built. You will need three separate Python environments, because PyCaret cannot share one with either TPOT or AutoTrain - pip refuses outright - and the lectures say so on camera rather than papering over it. auto-sklearn is taught as a dead package and what killed it, not as an option. A library that pins a four-year-old scikit-learn has made a decision on your behalf that outlived its usefulness, and noticing that is the skill.

The capstone asks you to beat AutoML by hand: the best framework result on the lapse problem, on the contract's own data and folds, at a matched budget, scored once. Three outcomes are accepted as correct, and only one of them is a win. Then one worked attempt with the decision trail intact and the failures left in - six moves, five of which returned nothing or could not count, and a final result that lands inside the noise.

What this course will not do. IT WILL NOT QUOTE YOU AN ACCURACY GAIN. Not a vendor benchmark, not an AutoML-versus-human percentage, not a pilot-failure rate, not a figure about jobs. Any number worth having here is one your own lab computed on a stated budget and a stated seed, printed with its fold spread beside it. Where a figure appears in this course, it is labelled as output on assumptions you can see and change.

Who this course is for:

  • Data scientists and ML engineers who want to know whether AutoML beats what they already build, and want the comparison run properly
  • Practitioners handed an AutoML leaderboard by a tool or a vendor who need to audit it rather than accept it
  • Anyone tuning models by intuition who wants the arithmetic under grid, random, Bayesian and halving search
  • Teams deciding whether to standardise on an AutoML framework, who need the compute cost and the dependency reality alongside the accuracy claim
  • Anyone who has watched a framework post an impressive score and been unable to say what it was impressive compared to