~/talk

Unit-tests for machine learning pipelines

Talkat PyCon Italia 2023 · 2023-05-25..05-28· [testing, machine-learning]
links:none on file
slides:none on file

End to end example builds a binary classifier on a Kaggle Pokemon set and shows concrete tests for each pipeline step: CSV loading and quality checks, pandas transformations for feature engineering, hyperparameter tuning and a scikit-learn logistic regression fit checked for instance type and feature names, and batch serving that writes predictions to disk. Tests use pytest parametrize for scenario matrices and a tempdir fixture to create fake input folders. Repository with runnable examples is linked for reproduction and CI integration.

AI-written summary · about

  1. 0:00Intro
  2. 0:48Data science workflow
  3. 2:51What are unittests
  4. 4:27Unittests for data science
  5. 5:14How did I design this pipeline
  6. 6:38Writing notebooks efficiently
  7. 8:48Test structure
  8. 9:51Examples
  9. 12:54What if
  10. 15:55Macro
  11. 17:04Training
  12. 19:25Conclusion
  13. 20:42Spark session
  14. 21:50GitHub repo
  15. 22:30Questions
~/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.