MoonSay /Tutorials/Machine Learning Interview #10
Contents
  1. 01Introduction
  2. 02The space explodes
  3. 03Your neighbors drift away
  4. 04The orange is all peel
  5. 05More features, worse model
  6. 06Why machine learning still works
  7. 07Common misconceptions
  8. 08Interview questions and model answers
  9. 09Summary
  10. References

09Summary

  • The space explodes: 10^d cells; 100 customers fill all 10 bins of one feature, 64 of 100 cells, and 95 of 1{,}000. Expected empty share (1-1/M)^N\approx e^{-N/M}.
  • Neighbors drift away: a box holding a fraction r of the data has edge r^{1/d}: 0.32, 0.46 and 0.79 for 10\% in 2, 3 and 10 dimensions. Median nearest-neighbor distance (1-2^{-1/N})^{1/d}.
  • The orange is all peel: shell share 1-(1-\epsilon)^d: 27\%, 65\%, 99.997\% for d=3,10,100; Gaussian samples sit at radius \sqrt d.
  • Distances concentrate: relative spread 0.59/\sqrt d in the cube; D_{\max}/D_{\min}\to1 (Beyer et al., 1999); cosine concentrates too.
  • More features, worse model: noise pixels drop 1-nearest-neighbor accuracy on real digits from 98.3\% to 55.2\%; peaking (Hughes, 1968).
  • Why it still works: real data lie near low-dimensional manifolds. Fixes: feature selection and L1, PCA and autoencoders, built-in structure, a better distance, more data.