~/talk

Patsy: The Lingua Franca to and from R

Talkat PyData Berlin 2017 · 2017-06-23..06-25· [python, data-visualization]
speakerdeck:maxhumber
slides:none on file

Shows how Patsy + scikit-learn reproduces R formula convenience by building design matrices, handling categorical variables and fitting three flavors of logistic regression on 1000 simulated migrants to predict Canada versus US. Walks R -> Python -> Patsy code, computes train/test splits, cross‑val and AUC scores, draws a separation plot, and produces example predictions (one case shows 99.8% probability of migrating to Canada). Demonstrates integration with pints pie mc3 for Bayesian extensions and a runnable notebook that actually works.

AI-written summary · about

  1. 0:00Introduction
  2. 3:58Excel/R to Python workflow
  3. 7:12Canadian migration dataset
  4. 9:01Logistic regression in R
  5. 11:53Moving regression to Python
  6. 14:42Patsy as R-Python bridge
  7. 16:49Visualizing model results
  8. 18:35Predicting with Patsy
  9. 21:03Patsy in advanced stats
  10. 23:07Summary
  11. 24:57Q&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.