~/talk

Tips and tricks: data science prototype into production

Talkat PyCon AU 2025 · 2025-09-12..09-16· [machine-learning, serverless]
links:none on file
slides:none on file

Solves a multi‑dimensional knapsack with tens of thousands of items, up to a hundred user constraints, using Google OR‑Tools and deployed to AWS Lambda; runtime wakes from SQS with inputs on S3 and a single entrypoint process allocation request that accepts pydantic models. Builds an 1,800‑line fixture suite, hits 87% coverage, and generates random synthetic loans for tests. Surprising specifics: informative errors returned to users, a mocked AWS cloud IO setup, and structured logging via a rotating file handler.

AI-written summary · about

  1. 0:00Prototype to production tips
  2. 4:00Jupyter notebooks trap
  3. 5:03Single entry point for production
  4. 6:05Testing data consistency
  5. 7:08Pydantic for data validation
  6. 8:55Testing synthetic vs real data
  7. 10:38Code coverage and test patterns
  8. 12:02Handling failed requests
  9. 13:28Errors to informative responses
  10. 15:57Advanced Python logging
  11. 19:09Production-ready practices
  12. 20:14Q&A mocking and testing
~/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.