~/talk

The unreasonable effectiveness of feature hashing

Talkat PyData London 2019 · 2019-07-12..07-14· [machine-learning]
links:none on file
slides:none on file

Feature hashing maps high‑cardinality categorical and bag‑of‑words features into a fixed, sparse vector with a cheap hash and modulo step, uses a sign bit trick to make collisions cancel in expectation, and benefits from power‑of‑two bucket sizes for ~30% faster indexing. Implementations include Vowpal Wabbit, scikit‑learn’s HashingVectorizer and Spark ML; a production use handles about 350 million observations with ~8.5 million coefficients, yielding a ~10% A/B lift and modest statistical degradation from collisions.

AI-written summary · about

  1. 0:00Welcome!
  2. 1:00Introduction
  3. 1:53Background- Supervised ML
  4. 3:29Categorical Features
  5. 4:00One-hot encoding
  6. 4:36Bag of words
  7. 5:20High dimensional feature space
  8. 9:20Feature Hashing
  9. 11:26Hash function
  10. 12:24Feature Hashing in Python
  11. 13:27Hashing of Unicode Strings
  12. 15:06Collisions
  13. 17:58Sign Functions
  14. 20:26Feature Hashing- Example
  15. 26:40Feature Hashing- Use Case
  16. 30:10Library Support
  17. 31:27Recap
  18. 32:20Q&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.