Sign in
Module 1 · Part 1 of 12 · free to read

Part 1

Chapter 1: The Notebook Graveyard--–- Every data scientist has a secret graveyard. It’s not a physical place with tombstones and epitaphs. It lives on their laptop, in a folder innocuously named archive or old_models or—if they have a dark sense of humor—production_ready_v3. This graveyard contains the bones of models that were once perfect. They had beautiful ROC curves. Their confusion matrices were immaculate. They passed every validation test their creators could imagine. And yet, they never saw the light of day. Or worse, they saw production for exactly one shift before exploding so catastrophically that a manager now uses their failure as a cautionary tale in onboarding slides.If you’ve never experienced this—if every model you’ve ever built has sailed smoothly from Jupyter notebook to Kubernetes cluster without a single late-night page—you can stop reading right now.

Return this book to the shelf. You don’t need it. For the rest of us, the ones who have felt that sickening lurch in the stomach when a Slack channel erupts with “is the API down?” at 2:13 AM, keep reading. This chapter is about why your notebook is lying to you, how XGBoost became the unlikely hero of production machine learning, and what it means to stop being a “notebook jockey” and start being an operator.The $10,000 Notebook MistakeIn 2017, a mid-sized fintech company—let’s call them LendFast—built a credit risk model that was, by every offline metric, a masterpiece. The data science team, led by a brilliant but inexperienced head of ML, had trained an XGBoost classifier on three years of loan application data.

The model achieved an AUC of 0.94 on the test set. Precision was 0.91. Recall was 0.88. These numbers were so good that the team printed them out and taped them to their office fridge.The notebook was beautiful. Cells ran in perfect order. Markdown explanations accompanied every code block. The team had even used %%time decorators to show how fast each training iteration completed. They pushed the notebook to GitHub, opened a PR, and declared victory.Three weeks later, after a painful deployment process involving manual copying of pickle files and hand-written shell scripts, the model went live. It worked for exactly four hours. Then the API started timing out.

Keep reading — free

Sign in with your SamEnrico account to read the whole of part 1.

Sign in