~/talk

How to Trust Your Deep Learning Code

Talkat PyCon DE & PyData Berlin 2022 · 2022-04-11..04-13· [testing, machine-learning]
links:none on file
slides:none on file

Shows concrete checks: use Python's unittest (or pytest) with PyTorch to assert model output shapes, verify pixel scaling to [-1,1], and run dataset-only scans or sampled checks. Test data loader multiprocessing because an lru_cache on file reads can crash multiworker loading. Disable gradients with torch.no_grad for fast forwards, seed torch/numpy/random for determinism, ensure GPU tensors are created on the correct device (rand vs device-aware tensors), verify per-sample independence, parameter updates, KL loss against scipy KL divergence, and add CI via GitHub Actions.

AI-written summary · about

  1. 0:00Intro
  2. 1:50Overview
  3. 4:50What are good tests
  4. 5:40Data testing
  5. 13:10Data sets
  6. 15:00Testing your model
  7. 22:30Unit tests
  8. 25:38Continuous Integration
  9. 26:07Questions
~/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.