~/talk

NumPy: vectorize your brain

Talkat EuroPython 2015 · 2015-07-20..07-26· [python, machine-learning]
links:none on file
slides:none on file

Code examples show concrete wins: a pure Python Euclidean loop runs ~2.67 ms per call while a C version hits ~28 μs — Euclidean distance 2.67 ms vs 28 μs and common NumPy idioms give roughly 100x speedup over naive loops. The talk demonstrates universal functions, boolean masks, slicing views versus copies, broadcasting with no memory copy for broadcasts, and a compact K‑means implementation that actually runs and clusters the synthetic data.

AI-written summary · about

  1. 0:00Introduction
  2. 1:19KNearest Neighbors
  3. 3:59Python is slow
  4. 7:49Java vs Python
  5. 10:28What is NumPy
  6. 11:18Universal Functions
  7. 16:33Slicing Indexing
  8. 22:02Broadcasting
  9. 27:40Aggregations
  10. 29:25Summary
  11. 29:47Example
  12. 31:51Questions
~/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.