~/talk

Machine Learning with Text in scikit learn

Talkat PyData DC 2016 · 2016-10-07..10-09· [python, machine-learning]
slides:none on file

Builds and evaluates real SMS spam classifiers from a GitHub tutorial using scikit-learn and pandas, turning text into a sparse document‑term matrix with count vectorizer and insisting on train‑test split before vectorizing. Trains a multinomial Naive Bayes and a logistic regression, reports timing in milliseconds and a surprisingly high 98.8% accuracy (with AU and confusion‑matrix diagnostics), demonstrates how to combine extra numeric features, and explains cross‑validation and probability calibration tradeoffs.

AI-written summary · about

  1. 0:00Introduction
  2. 12:52Agenda and model basics
  3. 23:36Text as numerical data
  4. 42:16Vectorization and matrices
  5. 52:35SMS spam dataset
  6. 1:07:59Naive Bayes model
  7. 1:21:47Naive Bayes vs logistic regression
  8. 1:24:19Conclusion
~/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.