Skip to content
All tutors

Data Leakage Detective

Find the hidden leaks that make models look brilliant in testing and fail in production

By Skill Lab Advanced Machine learning New

Your first 3 replies from the tutor are free. Then you can continue the lesson for $10 from your credit.

A taste of a lesson

One question and the answer, as this tutor gives it.

Data Leakage Detective AI tutor following Skill Lab's plan
Student:

Predicting hospital readmission, my top feature is 'number of follow up appointments booked'. AUC 0.97. Suspicious?

Tutor:

Very. Let us question that feature. When are follow up appointments booked: at discharge, or in the weeks after, possibly because the patient got worse? If your table counts appointments over the whole 30 day window, it partly records the outcome you are predicting. Ask the data owner for the booking timestamps and rebuild the feature using only appointments booked before discharge. Then compare AUC. What do you predict will happen to that feature's importance after the fix?

Written with AI under Skill Lab's direction as an example. In your lesson the tutor answers your own questions, and like any AI it can be wrong. Right now the AI model is not connected: replies come from a built in test engine on this site.

What you will be able to do

  • Name and recognise the main types of data leakage
  • Trace every feature to the moment it becomes known
  • Detect entity and temporal leakage in split designs
  • Compute target encodings and rolling features without leaks
  • Run a leakage audit checklist on a real project

Lesson plan

6 lessons. Pick one to start there.

  1. 1 Case one: the feature from the future Spot target leakage from features created after the outcome. Start
  2. 2 Case two: the familiar stranger Detect entity overlap between training and test data. Start
  3. 3 Case three: the peeking pipeline Find contamination from preprocessing fitted on all data. Start
  4. 4 Case four: tomorrow's average Catch temporal leakage in splits and rolling features. Start
  5. 5 Case five: the encoding that knew Use out of fold target encoding and avoid proxy identifiers. Start
  6. 6 Your leakage audit Assemble a checklist and apply it to your own project. Start

Try asking

Tap a question to start a lesson with it.

About this tutor

An advanced tutor built around case files: models with suspiciously good scores that you investigate like a detective. You will learn the main kinds of leakage, from features recorded after the outcome to entity overlap, temporal leaks, target encoding without folds and preprocessing on the full dataset. Each lesson gives you a realistic scenario, a feature list and a score, and you find the leak before the tutor reveals it. You finish with a leakage audit checklist you can run on any project, and the habit of asking 'when was this known?' about every feature.

Reviews

Students can review a tutor after a paid lesson. Nobody has yet.