AITeky Learn

AiTeky Original Interactive Learning & Practice Intermediate

Ensembles and gradient boosting: many small models beat one big one

Why one decision tree overfits, how bagging and random forests average the noise away, how gradient boosting learns from its own mistakes, and how to tune without fooling yourself, on electricity demand and loan defaults.

On tables of numbers, the winning model in most data contests is not a deep network. It is a forest or a boosted set of small decision trees. Banks score loans with them, power companies forecast demand with them, and shops rank products with them. The idea is simple: one model is wobbly, but many small models working together are steady.

This course builds that idea from the ground up. You write bagging and boosting yourself in a few lines, so the library versions stop being a black box, and then you learn the part that matters at work: tuning a model without peeking at the answers. You need the machine learning course first (train/test split, decision trees, overfitting).

  • Learn lessons explain one idea at a time, with code you can run and exercises you can repeat.
  • Industry ready lessons forecast hourly electricity demand for a city and score loan applications, and end with the interview questions that go with them. The loan lesson ends with an honest result: boosting does not always win.

Locked. Sign up free

Learn

Understand each idea with everyday examples. No coding background needed.

  1. 01 25 min Free sample πŸ”’ AiTeky Pass Why one decision tree is not enough See how a single decision tree memorises its training data, why that fails on new days, and how far any model can go when the data itself is noisy.
  2. 02 30 min πŸ”’ AiTeky Pass Bagging and random forests: averaging away the wobble Build bagging by hand with bootstrap samples, watch the error fall as trees are added, then use a random forest and read its feature importances and out-of-bag score.
  3. 03 35 min πŸ”’ AiTeky Pass Gradient boosting from scratch: learning from your own mistakes Build gradient boosting in ten lines, trees that each fix the errors of the ones before, see the learning rate at work, then meet the library versions.
  4. 04 35 min πŸ”’ AiTeky Pass Tuning without fooling yourself Choose the number of trees, the depth and the learning rate using a validation set and time-aware cross-validation, keep the test set sealed, and see how peeking makes results look better than they are.

Industry ready

Real problems from real jobs, and the questions interviewers ask about them.

  1. 05 40 min πŸ”’ AiTeky Pass On the job: forecasting a city's hourly electricity demand Build the demand forecast a grid manager can use, with a fair baseline, a tuned boosted model, errors by hour and heat, a safe upper forecast, and the limits of trees in a heatwave.
  2. 06 40 min πŸ”’ AiTeky Pass On the job: scoring loan applications, and when boosting does not win Compare logistic regression, a forest and boosting on loan defaults with cross-validation, read the spread of the scores, choose a cut-off from the cost of mistakes, and learn why the simple model can be the right answer.

We use essential cookies to run the site. With your permission we also set one anonymous ID to count unique visitors, and analytics cookies to see which pages help learners. Cookie notice

Join AiTeky Learn. It's free.

Create a free account to track your progress, save items for later and get study suggestions.

Sign up free Log in