~/talk

Intro to ML: How to Prevent Data Leakage and Build Efficient Workflows

Talkat PyData Global 2023 · 2023-12-06..12-08· [machine-learning, testing]
links:none on file
slides:none on file

Shows exactly how to stop leakage by learning preprocessing only on training folds and reusing those parameters for test and production, comparing a slow manual workflow with a correct scikit-learn Pipeline and ColumnTransformer implementation and a feature-engine option. Reproduces a paper finding leakage in at least 400+ papers across 17 fields. Demonstrates failure modes (get_dummies creating mismatched columns, duplicates, target-derived features), explains fit/transform/predict semantics, saves one serialized pipeline, and runs working Python notebooks on GitHub.

AI-written summary · about

  1. 0:00Introduction
  2. 1:52Data leakage importance
  3. 3:20Understanding machine learning pipelines
  4. 8:03What is data leakage
  5. 12:40Causes of leakage
  6. 19:47Preventing data leakage
  7. 21:58Transformers and pipelines
  8. 30:37Demo begins
  9. 1:00:00Manual preprocessing
  10. 1:14:08Simulating pipelines
  11. 1:20:40Scikit-learn Transformers
  12. 1:30:32Column Transformers
  13. 1:35:49Scikit-learn pipelines
  14. 1:42:29Complex ML pipelines
  15. 1:47:09Automated frameworks
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.