~/talk

Pandas, Pipelines, and Custom Transformers

Talkat PyData Seattle 2017 · 2017-06-30..07-02· [python, machine-learning]
links:none on file
slides:none on file

Shows that scikit-learn Pipelines strip DataFrame labels and offers a practical fix: implement pandas-friendly Pipeline and FeatureUnion and a set of custom transformers (column extractor, wrapper for StandardScaler, dummy transformer, log1p filler). Provides code on GitHub, applies to Seattle permits data, and reports AUC improving from 0.58 to 0.71 after the feature pipeline. Demonstrates how unseen categorical levels are handled and how transformers keep index and column names.

AI-written summary · about

  1. 0:00Introduction
  2. 3:11Simple ML model
  3. 6:33Scikit-learn transformers
  4. 9:03Pipelines for transformations
  5. 11:37Categorical data with one-hot
  6. 13:45Custom transformers
  7. 17:44Pandas and scikit-learn issues
  8. 20:13Complex feature pipeline
  9. 21:42Model performance evaluation
  10. 22:28Q&A
~/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.