~/talk

The "NumPy" Approach

Talkat PyData San Francisco 2016 · 2016-08-12..08-14· [python]
slides:none on file

Shows a concrete performance claim: rewriting a binary genetic algorithm from Python lists and explicit loops into NumPy arrays and vectorized ops cuts runtime (example: naive Python matrix multiply 14.2s vs NumPy 164ms; full GA runs drop from ~2–2.6s to ~1s for larger populations). Implements ndarray masking, flattened index put() updates and XOR bit flips, generates populations with NumPy random, performs crossover via elementwise masks, and reports correct convergence to all-ones.

AI-written summary · about

  1. 0:00NumPy approach
  2. 1:24Pure Python vector ops
  3. 4:04Genetic algorithm design
  4. 16:05Python lists limits
  5. 18:30NumPy machine types
  6. 20:55Algorithm with NumPy arrays
  7. 25:31Evolution in 3D NumPy
  8. 33:18Optimizing bit flips
  9. 34:44Performance comparison
  10. 35:08Conclusion
~/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.