internalsGet Pro

Module 13 · Lesson 3 of 8Pro

ML code that lasts: packages, config and logging

Level
Intermediate
Topic
Tuning and efficient training
Reading time
16 min

When you finish this page you can

  1. Lay out ML code as one installable package, so the notebook, the jobs and the tests import the same functions.
  2. Move settings into a reviewed config file, loaded into a frozen, validated dataclass, with only run inputs on the command line.
  3. Set up logging once, in the entry point, and log what each run needs: its config, data facts, results and warnings.
  4. Say which problems this setup still leaves to pipelines, experiment tracking and reproducibility.
  1. Notebooks or scripts: when to use each12 min
  2. Design: a churn prediction model for an online store28 min

Video lesson · coming soon

Three Mondays at the cap

is the online store this course uses as its example. Every Monday, a job scores the 200,000 customers in Farah’s notebook sample and emails a ₹100 voucher to those most likely to : to place no order in the next 60 days. Farah is the ML engineer who built the model. Joseph, the growth lead, owns the list.

Our biggest sale ever · Black Friday

Flat 50% Off

Pro

Continue reading

Unlock every course, now and later

  • System Design, live
  • AI Engineering, live
  • Data Engineering, live
  • Machine Learning Engineering, live
  • Inference Engineering, coming soon
  • AI Research, coming soon
  • Performance Engineering, coming soon
  • Agent & Harness Engineering, coming soon
  • LLM Fine-tuning, coming soon
  • LLM Pre-training & Post-training, coming soon
  • Reinforcement Learning, coming soon
  • AI Infrastructure & Platform Engineering, coming soon
  • AI Evaluation & Safety, coming soon
  • Forward Deployed Engineering, coming soon
  • Cloud Computing, coming soon
  • DevOps, coming soon

50% off · Annual and Lifetime

BLACKFRIDAY50Applied at checkout

Choose a plan