Leading With Data· a Bicycle Guide
Guide highlights

You can frame, build, evaluate, and deploy ML systems on real-world data. You confidently choose appropriate algorithms, metrics, and regularization for each task.

  • Learn what ML is and the main categories of ML systems.
  • Work through a complete end-to-end project to internalize the workflow.
  • Master core algorithms for classification and regression and how to evaluate them.

Book profile

Hands-On Machine Learning with Scikit-Learn, Keras, and TensorFlow

One book, placed in its field — what Aurélien Géron's book gets right, where it goes further than the rest, and what the rest of the field adds.

Edited by Mike West

Choose a reading path or an exercise

Suggested sections

Choose a starting point below. Each link opens a section of this guide.

Do this now — Training Data Quantity

  1. Plot validation error against training set size using increasing subsets, and check whether the curve is still falling.
  2. Estimate the labeling cost per thousand examples and compare it with the expected error reduction.
  3. Extend a small set with augmentation or by reusing pretrained models before commissioning new labels.

Then continue in Training Data Quantity.

Edition 1·Updated 2026-10-03·20 min read

Sources

About this book

An overview of the book, with source information for further reading.

A hands-on, code-first guide that teaches the concepts, tools, and techniques needed to build intelligent systems using Scikit-Learn, Keras, and TensorFlow, from fundamental ML algorithms to deep learning.

More on this book

This book takes a reader who knows close to nothing about Machine Learning and equips them to implement programs capable of learning from data. Rather than dwelling on theory, it favors a hands-on approach—growing intuitive understanding through concrete working examples and just enough math. Part I covers the fundamentals using Scikit-Learn: framing problems, end-to-end project workflow, classification, training models, support vector machines, decision trees, ensemble methods, dimensionality reduction, and unsupervised learning. Part II dives into neural networks and deep learning with Keras and TensorFlow, covering CNNs for vision, RNNs and Transformers for sequences and language, autoencoders and GANs for generative learning, reinforcement learning, and deploying models at scale. With production-ready frameworks, runnable Jupyter notebooks, and practical guidance on the inevitable challenges of bad data and bad algorithms, it is a comprehensive on-ramp for anyone who wants to apply Machine Learning to real projects.

Movement I

Orient

In this part

What this book claims, and who wrote it.

  • — The book's one-line promise
  • — The author and where the book stands

A hands-on, code-first guide that teaches the concepts, tools, and techniques needed to build intelligent systems using Scikit-Learn, Keras, and TensorFlow, from fundamental ML algorithms to deep learning.

The need-to-know

Machine Learning is about making machines improve at a task by learning from data instead of being explicitly programmed. A disciplined end-to-end workflow—frame the problem, get and explore data, prepare it with reusable pipelines, select and train models, fine-tune, then deploy and monitor—is more valuable than knowing many algorithms. The two things that go wrong are bad data (insufficient, nonrepresentative, poor-quality, irrelevant features) and bad algorithms (overfitting or underfitting); regularization and proper validation address the latter.

About this guide

The guide describes these challenges, steps and possible outcomes.

Who it is for

An aspiring practitioner or developer who knows close to nothing about Machine Learning but wants to build intelligent systems that learn from data and apply them to real projects.

Challenges

  • In practice · They need to implement working ML systems—classifiers, regressors, neural networks—but lack the concepts, tools, and intuition to do so.
  • For the reader · They feel intimidated by the math, jargon, and overwhelming breadth of ML, unsure where to start or which techniques to trust.

Steps to consider

  1. 1Learn what ML is and the main categories of ML systems.
  2. 2Work through a complete end-to-end project to internalize the workflow.
  3. 3Master core algorithms for classification and regression and how to evaluate them.
  4. 4Learn to prepare data with reusable pipelines and to regularize and fine-tune models.
  5. 5Build and train deep neural networks with Keras and TensorFlow for vision, sequences, and generative tasks.
  6. 6Deploy, monitor, and maintain models at scale.

Risks

You remain stuck applying brittle, hand-coded rules that are hard to maintain. You build models that overfit or are misled by skewed metrics, deploying systems that fail in production.

Intended result

You can frame, build, evaluate, and deploy ML systems on real-world data. You confidently choose appropriate algorithms, metrics, and regularization for each task.

Set the record straight

What this book sets straight

The common beliefs this book pushes back on.

The myth

More sophisticated algorithms are the key to better ML results.

The reality

For complex problems, the quantity and quality of data often matter more than the choice of algorithm; representative, clean data plus a reasonable model beats a fancy algorithm on bad data.

The myth

You should jump straight into Deep Learning because it is the most exciting area.

The reality

Master the fundamentals first; most problems can be solved well with simpler techniques like Random Forests and Ensemble methods, and Deep Learning is best reserved for complex problems with enough data and compute.

The myth

High accuracy means a good classifier.

The reality

Accuracy is misleading on skewed datasets; you must consider precision, recall, F1, ROC AUC, and the precision/recall trade-off appropriate to your task.

The myth

A model that performs perfectly on training data is excellent.

The reality

Perfect training performance usually signals overfitting; true performance must be judged by generalization to unseen data via validation and test sets.

Movement II

Map

The book's main ideas and how they connect.

In this part

Hands-On Machine Learning with Scikit-Learn, Keras, and TensorFlow's own model — and how it sits inside its field.

  • — 10 constructs the book works with
  • — Where it agrees with the field, exceeds it, or fills a gap
What You Design7· the levers you pull
Training Data QuantityTraining Data Quality and RepresentativenessFeature EngineeringModel ComplexityRegularization StrengthHyperparameter Tuning and Model SelectionValidation and Evaluation Rigor
What It Produces1· the states it creates
Overfitting/Underfitting State
What You Do1· the behaviours that follow
Deployment Monitoring and Maintenance

The constructs

Training Data Quantity

The amount of training examples available to the learning algorithm; the book stresses that most ML algorithms need a lot of data to work properly, and that data often matters more than the algorithm for complex problems.

Training Data Quality and Representativeness

The degree to which training data is clean, low in noise and errors, free of irrelevant features, and representative of the cases the model must generalize to; nonrepresentative or poor-quality data harms generalization.

Feature Engineering

The process of selecting, extracting, and creating useful features to train on, including feature scaling and combining attributes; better features reduce underfitting and improve predictive performance.

Model Complexity

The capacity or number of effective parameters and degrees of freedom of the chosen model relative to the data; too much complexity causes overfitting while too little causes underfitting.

Regularization Strength

The amount of constraint placed on a model (e.g., Ridge, Lasso, Elastic Net penalties, dropout, early stopping) to reduce its effective freedom and the risk of overfitting, controlled by hyperparameters such as alpha.

Hyperparameter Tuning and Model Selection

The systematic search (grid search, randomized search) over hyperparameter values using validation data to select the best model configuration for generalization.

Validation and Evaluation Rigor

The discipline of setting aside representative test, validation, and train-dev sets and using cross-validation to honestly estimate generalization error and avoid data snooping and data mismatch.

Overfitting/Underfitting State

The intermediate condition of the trained model in which it either performs well on training data but poorly on new data (overfitting) or poorly on both (underfitting), reflecting the bias/variance balance.

Generalization Performancethe outcome

The model's accuracy or error on unseen data in production, measured by generalization error and task-appropriate metrics like RMSE, precision/recall, F1, and ROC AUC; the ultimate goal of the ML workflow.

Deployment Monitoring and Maintenance

The ongoing process of serving the model, monitoring live performance, checking input data quality, and retraining or rolling back as data evolves and models rot over time.

How they connect (10)
  • Training Data Quantity → influences → Overfitting/Underfitting State
  • Training Data Quality and Representativeness → predicts → Generalization Performance
  • Feature Engineering → influences → Overfitting/Underfitting State
  • Model Complexity → influences → Overfitting/Underfitting State
  • Regularization Strength → moderates → Overfitting/Underfitting State
  • Overfitting/Underfitting State → predicts → Generalization Performance
  • Model Complexity → mediates → Generalization Performance
  • Hyperparameter Tuning and Model Selection → predicts → Generalization Performance
  • Validation and Evaluation Rigor → moderates → Generalization Performance
  • Deployment Monitoring and Maintenance → moderates → Generalization Performance

Where this book diverges from the corpus

  • fills gap The field's constructs concern software teams and leadership, and none covers the volume of training examples a learning algorithm needs.
  • fills gap Data cleanliness and representativeness for ML have no counterpart in the field's team- and process-focused model; Product Technical Quality concerns defects in delivered systems, not input data.
  • fills gap Selecting, extracting and combining model input features is an ML-specific practice that the field's model does not address.
  • fills gap The pre-match to Project Size and Sequential Complexity is only a name overlap: this is a model's capacity relative to its data, while the field construct is the scale and interdependency of a project.
  • fills gap Constraining model freedom with penalties, dropout or early stopping has no analogue in the field's constructs.
  • fills gap Systematic grid or randomized search over configurations using validation data is not covered by any field construct.

Movement III

Master

Explore the book's ideas, examples and practical tools.

In this part

How the author makes the case — section by section, with the book's own tools.

  • — 10 sections, in the book's order
  • — The book's frameworks, checklists, and worked cases
Hyperparameter Tuning and Model Selection
strong · 1 source
  • Hands-On Machine Learning with Scikit-Learn, Keras, and TensorFlow
In this section

This section covers searching hyperparameter values systematically and selecting the final model. You get guidance on choosing between grid and randomized search and on keeping the search honest.

Hyperparameter Tuning and Model Selection

The systematic search (grid search, randomized search) over hyperparameter values using validation data to select the best model configuration for generalization.

Why it matters. Careful tuning can lift a model past its defaults, but a careless search overfits the validation set and produces optimism you cannot reproduce.

Myth

The best score from a hyperparameter search is a reliable estimate of how the model will perform in production.

Reality

The winning configuration was selected because it scored highest on that data, so its score is optimistically biased. Only a held-out test set, untouched by the search, gives an honest estimate.

Tools for this
The least you need to know
  • Randomized search usually covers a large space more efficiently than a full grid.
  • The search winner's score is biased upward; confirm it on untouched data.
  • Put preprocessing inside the pipeline being cross-validated.
Master this◆ Paid

The deep drill-down: 8 operational steps, a worked example from the source, 5 decision rules, 5 failure modes, and the “Hyperparameter Search Log” tool. Included when you buy this guide.

The rest of this section

the full written section · 3 how-to steps · 2 pitfalls to watch for · 8 tools for this section. Included when you buy this guide.

Grounded in: Hands-On Machine Learning with Scikit-Learn, Keras, and TensorFlow

Validation and Evaluation Rigor
strong · 1 source
  • Hands-On Machine Learning with Scikit-Learn, Keras, and TensorFlow
In this section

This section covers how to split data into training, validation, test, and train-dev sets and use cross-validation to estimate generalization honestly. You get rules that keep your estimate from being flattered by leakage.

Validation and Evaluation Rigor

The discipline of setting aside representative test, validation, and train-dev sets and using cross-validation to honestly estimate generalization error and avoid data snooping and data mismatch.

Why it matters. Without rigorous splits, you ship a model with a performance number that was never real, and discover the gap only when users do.

Myth

Looking at the test set a few times while iterating is harmless as long as you do not train on it.

Reality

Every decision informed by the test score leaks information into the model choice, so the test error stops being an unbiased estimate. This is data snooping, and it works silently.

Tools for this
The least you need to know
  • Lock the test set away before any exploration or modeling.
  • A train-dev set diagnoses whether failure comes from overfitting or from data mismatch.
  • Cross-validation compares models; the test set confirms only the final one.
Master this◆ Paid

The deep drill-down: 8 operational steps, a worked example from the source, 5 decision rules, 5 failure modes, and the “Evaluation Integrity Checklist” tool. Included when you buy this guide.

The rest of this section

the full written section · 4 how-to steps · 2 pitfalls to watch for · 2 tools for this section. Included when you buy this guide.

Grounded in: Hands-On Machine Learning with Scikit-Learn, Keras, and TensorFlow

Overfitting/Underfitting State
strong · 1 source
  • Hands-On Machine Learning with Scikit-Learn, Keras, and TensorFlow
In this section

This section helps you diagnose whether a trained model is overfitting, underfitting, or balanced, and what to do for each case. You get a read-out of the training-versus-validation error gap.

Overfitting/Underfitting State

The intermediate condition of the trained model in which it either performs well on training data but poorly on new data (overfitting) or poorly on both (underfitting), reflecting the bias/variance balance.

Why it matters. Treating the wrong condition wastes effort: adding data to an underfit model or adding capacity to an overfit one both make no progress.

Myth

Low training error means the model has learned the problem well.

Reality

Training error only shows fit to seen data; the gap to validation error reveals overfitting, while high error on both reveals underfitting. The two states call for opposite remedies.

Tools for this
The least you need to know
  • The train-versus-validation gap separates variance problems from bias problems.
  • Overfitting and underfitting require opposite fixes; diagnose first.
  • Learning curves turn a vague suspicion into a decision.
Master this◆ Paid

The deep drill-down: 8 operational steps, a worked example from the source, 5 decision rules, 5 failure modes, and the “Fit-State Diagnosis Sheet” tool. Included when you buy this guide.

The rest of this section

the full written section · 4 how-to steps · 2 pitfalls to watch for · 5 tools for this section. Included when you buy this guide.

Grounded in: Hands-On Machine Learning with Scikit-Learn, Keras, and TensorFlow

Generalization Performance
strong · 1 source
  • Hands-On Machine Learning with Scikit-Learn, Keras, and TensorFlow
In this section

This section defines the real target of the workflow: error on unseen data, measured with metrics matched to the task. You learn how to choose and read those metrics.

Generalization Performance

The model's accuracy or error on unseen data in production, measured by generalization error and task-appropriate metrics like RMSE, precision/recall, F1, and ROC AUC; the ultimate goal of the ML workflow.

Why it matters. Optimizing the wrong metric, or measuring on the wrong data, yields a model that scores well on paper and fails the business need.

Myth

Accuracy is a sufficient score for judging any classifier.

Reality

On imbalanced data, a classifier that always predicts the majority class scores high accuracy while being useless. Precision, recall, F1, and ROC AUC expose the trade-offs that matter to the use case.

The least you need to know
  • Choose the metric from the cost of mistakes, not from habit.
  • Accuracy misleads on imbalanced classes; check precision, recall, and F1.
  • Report uncertainty alongside the point estimate of generalization error.
Master this◆ Paid

The deep drill-down: 8 operational steps, a worked example from the source, 5 decision rules, 5 failure modes, and the “Generalization Evaluation Plan” tool. Included when you buy this guide.

The rest of this section

the full written section · 4 how-to steps · 2 pitfalls to watch for · 2 tools for this section. Included when you buy this guide.

Grounded in: Hands-On Machine Learning with Scikit-Learn, Keras, and TensorFlow

Deployment Monitoring and Maintenance
strong · 1 source
  • Hands-On Machine Learning with Scikit-Learn, Keras, and TensorFlow
In this section

This section covers keeping a model healthy after launch: serving it, watching live performance, checking inputs, and retraining. You get a routine for catching model rot before it harms users.

Deployment Monitoring and Maintenance

The ongoing process of serving the model, monitoring live performance, checking input data quality, and retraining or rolling back as data evolves and models rot over time.

Why it matters. Data evolves, so a model that generalized well at launch silently degrades unless something is watching and ready to retrain or roll back.

Myth

Once a model passes validation and ships, the work is finished and performance will stay where it was.

Reality

Models rot as the world drifts away from the training data, often without raising an error. Monitoring and automated retraining are part of the model, not an afterthought.

Tools for this
The least you need to know
  • Model performance decays with data drift unless monitored.
  • Automate retraining and keep versioned backups for quick rollback.
  • Check input data quality as well as output accuracy.
Master this◆ Paid

The deep drill-down: 8 operational steps, a worked example from the source, 5 decision rules, 5 failure modes, and the “Live Model Monitoring and Retraining Plan” tool. Included when you buy this guide.

The rest of this section

the full written section · 4 how-to steps · 2 pitfalls to watch for · 4 tools for this section. Included when you buy this guide.

Grounded in: Hands-On Machine Learning with Scikit-Learn, Keras, and TensorFlow

Training Data Quantity
strong · 1 source
  • Hands-On Machine Learning with Scikit-Learn, Keras, and TensorFlow
In this section

This section covers how the number of training examples shapes what a model can learn, and when more data beats a better algorithm. You get a way to judge whether your next move should be collecting data or changing the model.

Training Data Quantity

The amount of training examples available to the learning algorithm; the book stresses that most ML algorithms need a lot of data to work properly, and that data often matters more than the algorithm for complex problems.

Why it matters. Misreading data volume leads you to burn weeks tuning a model that is starved of examples, or to spend money on labeling when the real bottleneck lies elsewhere.

Myth

If a model underperforms, switching to a fancier algorithm is the fastest route to better results.

Reality

For complex problems such as speech or image recognition, past a certain point the gap between algorithms narrows while the gap between data sizes persists. Learning curves tell you whether more examples will actually help.

Tools for this
The least you need to know
  • Learning curves, not intuition, decide whether to collect more data or change the model.
  • With complex problems, data volume often outweighs algorithm choice.
  • More data only helps if it is drawn from the same distribution you will face in production.
Master this◆ Paid

The deep drill-down: 7 operational steps, a worked example from the source, 5 decision rules, 5 failure modes, and the “Training Data Sufficiency Check” tool. Included when you buy this guide.

The rest of this section

the full written section · 3 how-to steps · 2 pitfalls to watch for · 3 tools for this section. Included when you buy this guide.

Grounded in: Hands-On Machine Learning with Scikit-Learn, Keras, and TensorFlow

Training Data Quality and Representativeness
strong · 1 source
  • Hands-On Machine Learning with Scikit-Learn, Keras, and TensorFlow
In this section

This section explains what makes training data fit for purpose: cleanliness, relevance of features, and match to the real-world cases. You get a checklist for auditing a dataset before you model it.

Training Data Quality and Representativeness

The degree to which training data is clean, low in noise and errors, free of irrelevant features, and representative of the cases the model must generalize to; nonrepresentative or poor-quality data harms generalization.

Why it matters. A model trained on a skewed or noisy sample will be confidently wrong in production, and no amount of tuning will reveal why.

Myth

A large dataset is automatically a good one, because sheer size averages out errors and bias.

Reality

Large samples are still biased if the sampling method is flawed; the 1936 Literary Digest poll with millions of responses is the canonical failure. Size reduces variance, not systematic sampling bias.

Tools for this
The least you need to know
  • Representativeness of the sample matters more than its raw size.
  • Audit class balance and attribute distributions before training, not after a poor score.
  • Every cleaning decision is a modeling decision; document it.
Master this◆ Paid

The deep drill-down: 8 operational steps, a worked example from the source, 5 decision rules, 5 failure modes, and the “Training Data Quality & Representativeness Audit Sheet” tool. Included when you buy this guide.

The rest of this section

the full written section · 3 how-to steps · 2 pitfalls to watch for · 5 tools for this section. Included when you buy this guide.

Grounded in: Hands-On Machine Learning with Scikit-Learn, Keras, and TensorFlow

Feature Engineering
strong · 1 source
  • Hands-On Machine Learning with Scikit-Learn, Keras, and TensorFlow
In this section

This section covers selecting, extracting, and creating the inputs your model sees, including scaling and combining attributes. You learn how to improve a model's signal without changing its algorithm.

Feature Engineering

The process of selecting, extracting, and creating useful features to train on, including feature scaling and combining attributes; better features reduce underfitting and improve predictive performance.

Why it matters. Well-built features let a simple model capture structure that a complex model on raw inputs misses, and poorly scaled ones cripple distance- and gradient-based learners.

Myth

Modern models, especially deep networks, learn their own features so manual feature work is obsolete.

Reality

On tabular data, ratios like rooms per household or population per household often add signal no estimator discovers unaided. Scaling and encoding remain prerequisites for most algorithms.

Tools for this
The least you need to know
  • Domain-informed combined features often beat switching algorithms.
  • Wrap every transformation in a pipeline so training and production apply identical steps.
  • Fit transformers on training data only to avoid leakage.
Master this◆ Paid

The deep drill-down: 8 operational steps, a worked example from the source, 5 decision rules, 5 failure modes, and the “Feature Experiment Log” tool. Included when you buy this guide.

The rest of this section

the full written section · 4 how-to steps · 2 pitfalls to watch for · 3 tools for this section. Included when you buy this guide.

Grounded in: Hands-On Machine Learning with Scikit-Learn, Keras, and TensorFlow

Model Complexity
strong · 1 source
  • Hands-On Machine Learning with Scikit-Learn, Keras, and TensorFlow
In this section

This section explains how a model's capacity relative to your data determines whether it underfits or overfits. You get a practical way to pick and adjust capacity.

Model Complexity

The capacity or number of effective parameters and degrees of freedom of the chosen model relative to the data; too much complexity causes overfitting while too little causes underfitting.

Why it matters. Choosing capacity badly means either missing real patterns or memorizing noise, and both show up only after you ship.

Myth

A more complex model is always more accurate, so you should start with the biggest model you can afford.

Reality

Capacity must match the amount and noisiness of the data; past the sweet spot, training error keeps falling while validation error rises. Complexity is a trade-off, not a quality ladder.

Tools for this
The least you need to know
  • Capacity should be raised only while validation error improves.
  • A simple baseline sets the bar any complex model must clear.
  • Effective degrees of freedom, not parameter count, is what governs overfitting.
Master this◆ Paid

The deep drill-down: 8 operational steps, a worked example from the source, 5 decision rules, 5 failure modes, and the “Model Complexity Audit Sheet” tool. Included when you buy this guide.

The rest of this section

the full written section · 3 how-to steps · 2 pitfalls to watch for · 6 tools for this section. Included when you buy this guide.

Grounded in: Hands-On Machine Learning with Scikit-Learn, Keras, and TensorFlow

Regularization Strength
strong · 1 source
  • Hands-On Machine Learning with Scikit-Learn, Keras, and TensorFlow
In this section

This section shows how to constrain a model through penalties, dropout, or early stopping and how to set the strength of that constraint. You get a way to dial in the bias-variance balance without redesigning the model.

Regularization Strength

The amount of constraint placed on a model (e.g., Ridge, Lasso, Elastic Net penalties, dropout, early stopping) to reduce its effective freedom and the risk of overfitting, controlled by hyperparameters such as alpha.

Why it matters. Too little regularization lets a flexible model memorize noise, while too much flattens it into underfitting, so the setting directly decides which side you land on.

Myth

Regularization is a fix you apply only once a model is clearly overfitting, and more of it is always safer.

Reality

It is a continuous dial that shifts the bias-variance trade-off in both directions; excessive alpha produces underfitting that looks like a weak model. Treat it as a hyperparameter tuned against validation data.

Tools for this
The least you need to know
  • Regularization strength is a tuned hyperparameter, not an on/off switch.
  • Scale your features before applying any penalty-based regularizer.
  • Too much regularization produces underfitting, so check both error curves.
Master this◆ Paid

The deep drill-down: 7 operational steps, a worked example from the source, 5 decision rules, 5 failure modes, and the “Regularization Strength Sweep Log” tool. Included when you buy this guide.

The rest of this section

the full written section · 4 how-to steps · 2 pitfalls to watch for · 2 tools for this section. Included when you buy this guide.

Grounded in: Hands-On Machine Learning with Scikit-Learn, Keras, and TensorFlow

Movement III · The run-it-now depth

The Playbook

Practical tools and examples from this guide.

Frameworks

Frameworkfree

Deployment Monitoring and Maintenance

How this mechanism is run, step by step, as the literature describes it.

  1. 1Deploy the model as a web service. Save the trained model with joblib, upload it to Google Cloud Storage, create a new model version in Google Cloud AI Platform pointing at the GCS file, and let the service handle load balancing and scaling. The web app sends JSON requests with the input data (e.g., a district) and receives JSON predictions.
  2. 2Write monitoring code that checks live performance at regular intervals and triggers alerts when it drops. Cover two patterns: a steep drop (likely a broken infrastructure component) and a gentle decay that can go unnoticed for a long time.
  3. 3Pick the performance signal. If downstream metrics reveal model quality (e.g., a recommender system's results), use them. If not, send human raters a sample of the model's outputs, weighted toward cases where the model was not so sure. Raters can be experts, crowdsourced workers (e.g., Amazon Mechanical Turk), or the users themselves via surveys or repurposed captchas.
  4. 4Define the failure process up front: what to do when performance drops and how to prepare for it. The source warns this is often much more work than building and training the model.
  5. 5Monitor input data quality separately from model performance. A malfunctioning sensor sending random values or another team's output going stale can degrade performance slightly, and the cause may take a while to surface.
  6. 6Automate the refresh cycle: collect and label fresh data regularly; run a script that trains and fine-tunes hyperparameters on a schedule (daily or weekly, per your needs); run a second script that evaluates the new and previous models on the updated test set.
  7. 7Gate deployment on that comparison: deploy the new model only if performance has not decreased. If it did decrease, investigate why before anything ships.
  8. 8Keep evaluation slices beyond the full test set, such as a subset of only the most recent data or specific input kinds (e.g., inland versus near-ocean districts), to see strengths and weaknesses.
Framework◆ Paid

Feature Engineering

How this mechanism is run, step by step, as the literature describes it.

◆ The full 8-step framework — included with this guide purchase

Framework◆ Paid

Generalization Performance

How this mechanism is run, step by step, as the literature describes it.

◆ The full 8-step framework — included with this guide purchase

Framework◆ Paid

Hyperparameter Tuning and Model Selection

How this mechanism is run, step by step, as the literature describes it.

◆ The full 8-step framework — included with this guide purchase

Framework◆ Paid

Model Complexity

How this mechanism is run, step by step, as the literature describes it.

◆ The full 8-step framework — included with this guide purchase

Framework◆ Paid

Overfitting/Underfitting State

How this mechanism is run, step by step, as the literature describes it.

◆ The full 8-step framework — included with this guide purchase

Framework◆ Paid

Regularization Strength

How this mechanism is run, step by step, as the literature describes it.

◆ The full 7-step framework — included with this guide purchase

Framework◆ Paid

Training Data Quality and Representativeness

How this mechanism is run, step by step, as the literature describes it.

◆ The full 8-step framework — included with this guide purchase

Framework◆ Paid

Training Data Quantity

How this mechanism is run, step by step, as the literature describes it.

◆ The full 7-step framework — included with this guide purchase

Framework◆ Paid

Validation and Evaluation Rigor

How this mechanism is run, step by step, as the literature describes it.

◆ The full 8-step framework — included with this guide purchase

Checklists

Checklistfree

Deployment Monitoring and Maintenance — decision rules

  • If performance drops steeply, suspect a broken infrastructure component first; if it declines gently, suspect model rot from a changing world and plan retraining.
  • If downstream metrics can reveal model quality, use them; if not, set up human raters and prioritize samples the model was unsure about.
  • If the new model does not match or beat the previous model on the updated test set, do not deploy it and investigate why.
  • If performance degrades slightly, check input data quality (malfunctioning sensors, stale upstream output) before blaming the model.
  • If the data keeps evolving, automate data collection, labeling, training, and evaluation rather than retraining by hand.
Checklist◆ Paid

Feature Engineering — decision rules

◆ All 5 checkpoints — included with this guide purchase

Checklist◆ Paid

Generalization Performance — decision rules

◆ All 5 checkpoints — included with this guide purchase

Checklist◆ Paid

Hyperparameter Tuning and Model Selection — decision rules

◆ All 5 checkpoints — included with this guide purchase

Checklist◆ Paid

Model Complexity — decision rules

◆ All 5 checkpoints — included with this guide purchase

Checklist◆ Paid

Overfitting/Underfitting State — decision rules

◆ All 5 checkpoints — included with this guide purchase

Checklist◆ Paid

Regularization Strength — decision rules

◆ All 5 checkpoints — included with this guide purchase

Checklist◆ Paid

Training Data Quality and Representativeness — decision rules

◆ All 5 checkpoints — included with this guide purchase

Checklist◆ Paid

Training Data Quantity — decision rules

◆ All 5 checkpoints — included with this guide purchase

Checklist◆ Paid

Validation and Evaluation Rigor — decision rules

◆ All 5 checkpoints — included with this guide purchase

Case studies — including what didn't work

Case studyfree

Deployment Monitoring and Maintenance

Context

Take the chapter's housing-price model, deployed on Google Cloud AI Platform: the model file sits in GCS, and a web app sends JSON for a district and gets back a predicted median price. The previous process had experts estimating prices manually, often off by more than 20%, which gives you a reference for performance. You write monitoring code that checks live predictions at regular intervals and alerts on a drop. Because the true median price is sometimes found later, you can compare predictions to it; where it isn't, you send a sample to human raters. A scheduled script collects fresh data, labels it, retrains, and tunes hyperparameters. A second script scores the new and old models on the updated test set and deploys the new one only if performance has not decreased. Separately, you check input quality, since another team's stale output feeding the pipeline would quietly erode accuracy. You also keep slices such as recent districts and inland versus near-ocean districts to see where the model weakens.

Case study◆ Paid

Feature Engineering

Context

The source's own case is a linear model of life satisfaction. It underfits because reality is more complex than the model, so its predictions are inaccurate even on the training examples. Adding model power or loosening regularization are two ways out. The third is to feed better features, which is feature engineering. You inventory the attributes and drop any that are irrelevant. You then ask whether combining two existing attributes produces a more informative one. If nothing combines usefully, you gather new data to add a feature. Take the source's missing-data case as well: if 5% of customers did not specify their age, you decide whether to drop the attribute, drop those customers, fill the gap with the median age, or train two models, one with the feature and one without. After each change you compare cross-validated performance. The change stays only if the training-set error falls and the cross-validated score holds up.

◆ What happened, and the outcome — included with this guide purchase

Case study◆ Paid

Generalization Performance

Context

The passages describe this failure. You are choosing a regularization hyperparameter for a linear model. You train 100 models with 100 different values and score each on the test set. The best one shows just 5% error. You launch it, and production returns 15% errors. The cause is that you measured generalization error many times on the same test set and tuned the model to that particular set, so the 5% figure was optimistic. The fix is holdout validation. Split a validation set off the training set, train the 100 models on the reduced training set, and pick the winner on the validation set. Retrain that winner on the full training set. Then touch the test set once, to get an honest estimate. If that estimate is near 15% rather than 5%, you learn it before users do.

◆ What happened, and the outcome — included with this guide purchase

Case study◆ Paid

Hyperparameter Tuning and Model Selection

Context

The source's running example models life satisfaction from GDP per capita using Hungary (12,240; 4.9), Korea (27,195; 5.8), France (37,675; 6.5), Australia (50,962; 7.3) and United States (55,805; 7.2). Choosing a linear model, life_satisfaction = θ0 + θ1 × GDP_per_capita, is model selection. Training finds θ0 = 4.85 and θ1 = 4.91 × 10^-5. For Cyprus (22,587), the prediction is 4.85 + 22,587 × 4.91 × 10^-5 ≈ 5.96. Now treat model complexity as the choice. The source shows a high-degree polynomial that fits the training data much better than the line yet is untrustworthy, because it overfits. Judged on training data, the polynomial would win every time. Judged on held-out countries, the simple linear model is the one that earns trust. The tuning rule is to rank candidates by validation performance, not training fit. The source does not report numeric validation errors for this example, so the comparison here is qualitative.

◆ What happened, and the outcome — included with this guide purchase

Case study◆ Paid

Model Complexity

Context

The passages give a clear case of complexity out of proportion to what the model delivers: the Hopfield net. To classify 28 × 28-pixel images you need 784 fully connected neurons, which means 306,936 weights. The network's memory capacity is only roughly 14% of the number of neurons, so it learns about 110 different characters (14% of 784). That works out to roughly 2,800 weights per learnable character, which the source sums up as 'a lot of parameters for such a small memory.' It also fails in a second way: some patterns that were not in the training set end up with low energy, so the network sometimes settles on spurious patterns it never learned. The lesson is to count parameters against what the model actually retains and generalizes. Raw parameter count is a poor proxy for useful capacity, so judge capacity by held-out behavior, not by size.

◆ What happened, and the outcome — included with this guide purchase

Case study◆ Paid

Overfitting/Underfitting State

Context

The passages' housing project shows both states in sequence. A Linear Regression model gets an RMSE of 68,628.198 on the whole training set. Most districts' median_housing_values fall between $120,000 and $265,000, and the first prediction is off by close to 40%. Error is poor on the training data itself, so this is underfitting: the features lack information or the model is too weak. The model is not regularized, so reducing constraints is ruled out. Next, a DecisionTreeRegressor, a more powerful model, is trained, and its training RMSE is 0.0. A perfect score is implausible, so the tree has probably memorized the training data. Training error alone cannot settle it, so you evaluate on data not used for fitting. Same data, same metric, two opposite failures, and the fix is different for each.

◆ What happened, and the outcome — included with this guide purchase

Case study◆ Paid

Regularization Strength

Context

The passages' own case is the life-satisfaction linear model with two parameters, θ0 (height) and θ1 (slope), which gives two degrees of freedom. Trained on only some countries, the model picks up a spurious pattern: it ranks countries like Switzerland (7.5) in a way that holds by pure chance, and you cannot be confident it extends to Rwanda or Zimbabwe. If you force θ1 = 0, the model has one degree of freedom and ends up around the mean. If you let θ1 vary but keep it small, the model has somewhere between one and two degrees of freedom. In Figure 1-23, the regularized model (solid line) has a smaller slope than the unregularized one (dotted line) trained on the same circle countries. It fits the training circles worse, but it generalizes better to the square countries it never saw. Push the regularization hyperparameter to a very large value and the slope approaches zero, an almost flat model that cannot overfit but is unlikely to find a good solution. The lesson: the right strength lies between those two lines, and you find it by testing on unseen examples.

◆ What happened, and the outcome — included with this guide purchase

Case study◆ Paid

Training Data Quality and Representativeness

Context

The source gives a life-satisfaction model trained on country-level data. Suppose you add many extra attributes, including the country's name, and fit a complex model. It finds that every training country with a 'w' in its name has life satisfaction above 7: New Zealand (7.3), Norway (7.4), Sweden (7.2), Switzerland (7.5). The rule is perfect on the training set and meaningless elsewhere. Would you trust it for Rwanda or Zimbabwe? The pattern arose by pure chance, and the model cannot distinguish a real pattern from noise. The fix follows the data-quality steps: drop the irrelevant attribute (country name), remove outliers or fix errors, keep only features with a plausible link to life satisfaction (the source suggests candidates like employment rate, health, air pollution), and simplify or regularize the model. The same logic applies to representativeness. A funk-music video classifier trained on YouTube search results for 'funk music' inherits a bias toward popular artists, and if you live in Brazil it returns many 'funk carioca' videos, which sound nothing like James Brown. The training set misdescribes the population the model must serve.

◆ What happened, and the outcome — included with this guide purchase

Case study◆ Paid

Training Data Quantity

Context

The book contrasts a toddler with a learning algorithm. A toddler needs you to point at an apple and say 'apple' a few times, then recognizes apples in all sorts of colors and shapes. A typical ML algorithm cannot do that. Even a very simple problem usually needs thousands of examples, and image or speech recognition may need millions. The evidence for data over algorithm is Banko and Brill's 2001 Microsoft paper. They compared very different ML algorithms, including fairly simple ones, on a complex language problem (the book's footnote gives choosing between 'to,' 'two,' and 'too' from context as the kind of task). All the algorithms performed almost identically well once the data was large enough. The practical reading: if you have a complex problem and a mediocre result, ask whether more data would help before you swap in a more elaborate model. The same logic explains why neural networks are now more useful. The book cites 'a huge quantity of data available' as one reason, and notes that ANNs frequently outperform other techniques on very large, complex problems.

◆ What happened, and the outcome — included with this guide purchase

Case study◆ Paid

Validation and Evaluation Rigor

Context

The source describes a regularization search that goes wrong. You train 100 models with 100 values of the regularization hyperparameter and pick the one with the lowest error on the test set: 5%. In production it produces 15% errors. The cause is that you measured generalization error many times on the test set and adapted the model to that particular set. The fix is holdout validation: select on a validation set, retrain the winner on the full training set, then touch the test set once. In the housing project, the Decision Tree scores RMSE 0.0 on the training set, which signals overfitting rather than perfection. 10-fold cross-validation gives the honest number. The grid search then finds max_features=8 and n_estimators=30 with RMSE 49,682, slightly better than the default-hyperparameter score of 50,182. That score still comes from cross-validation, so the test set stays untouched until the final evaluation.

◆ What happened, and the outcome — included with this guide purchase

Templates

Templatefree

Live Model Monitoring and Retraining Plan

Template◆ Paid

Feature Experiment Log

◆ The fillable template — included with this guide purchase

Template◆ Paid

Generalization Evaluation Plan

◆ The fillable template — included with this guide purchase

Template◆ Paid

Hyperparameter Search Log

◆ The fillable template — included with this guide purchase

Template◆ Paid

Model Complexity Audit Sheet

◆ The fillable template — included with this guide purchase

Template◆ Paid

Fit-State Diagnosis Sheet

◆ The fillable template — included with this guide purchase

Template◆ Paid

Regularization Strength Sweep Log

◆ The fillable template — included with this guide purchase

Template◆ Paid

Training Data Quality & Representativeness Audit Sheet

◆ The fillable template — included with this guide purchase

Template◆ Paid

Training Data Sufficiency Check

◆ The fillable template — included with this guide purchase

Template◆ Paid

Evaluation Integrity Checklist

◆ The fillable template — included with this guide purchase

Items marked Paid are included when you buy this guide.

Movement IV

Reflect

Consider the book's evidence, limitations and how it compares with other sources.

In this part

How good is it — where the book stands against the field, what it leaves open, and when to trust it.

  • — Its positioning, its critique, its blind spots
  • — When to apply it — and when not
  • — The evidence behind the advice

Book profile · in the corpus

This book’s model, against the corpus

1 of 10 constructs align with the field · 9 the book adds · 0 where it diverges · the field spans 24 constructs across 5 books

shared with the corpusthis book's own emphasisthe corpus adds (other sources)

Shared with the corpus — corroborated by other sources

Deployment Monitoring and Maintenance

This book's own emphasis — where it's the authority

Training Data QuantityTraining Data Quality and RepresentativenessFeature EngineeringModel ComplexityRegularization StrengthHyperparameter Tuning and Model SelectionValidation and Evaluation RigorOverfitting/Underfitting StateGeneralization Performance

The corpus adds — from 4 other sources this book doesn't cover

The full field guide folds in ideas this book doesn’t reach — drawn from 4 further sources and cited in the full model.

This book’s place in the corpus

1 of 5
sources in this corpus
10
constructs contributed
1
corroborated by others
9
unique to this book

Why the corpus guide, not just this book

The book builds on the empirical, train/validate/test tradition of statistical learning and is the authority on data, model capacity, regularization and honest evaluation. The reconciled field-guide adds the team, leadership, delivery and organizational conditions that decide whether such ML work gets shipped, maintained and sustained, none of which the book covers.

This guide stands on the shoulders of this book and 4 other sources — every claim cited, the disagreements named.

Read the reconciled Lead A Hardware Engineering Team guide →

Read it closely

The book, examined

Not a summary — a close analytical reading: how the book is built, what it leaves open, and where it falls short.

How it’s built — the argument in order

  1. 01
    Preface and framing (tools, approach, prerequisites, roadmap) — Sets the hands-on, code-first philosophy ('concrete working examples and just a little bit of theory'). Introduces Scikit-Learn, Keras, and TensorFlow as production-ready frameworks. States prerequisites (Python, NumPy/pandas/Matplotlib, college-level math) and points to the Jupyter notebooks. Gives a roadmap and warns against jumping into deep learning before mastering the fundamentals.
  2. 02
    Part I, Ch. 1: The Machine Learning Landscape — Defines ML as improving at a task from data rather than explicit programming. Gives the taxonomy of systems (supervised/unsupervised, batch/online, instance-based/model-based). Names the main challenges: bad data (insufficient quantity, nonrepresentative, poor quality, irrelevant features) and bad algorithms (over- and underfitting). Introduces testing and validation.
  3. 03
    Part I, Ch. 2: End-to-End Machine Learning Project — Walks the full workflow: frame the problem, get and explore the data, prepare it with reusable pipelines, select and train models, fine-tune, then launch, monitor, and maintain. Also introduces Jupyter and the tooling.
  4. 04
    Part I, Chs. 3–7: Core supervised algorithms (classification, training models, SVMs, decision trees, ensembles/random forests) — Builds core technique across classification and evaluation metrics, linear/polynomial/regularized models and gradient descent, SVMs, trees, and ensemble methods. Shows how model complexity and regularization govern overfitting and underfitting.
  5. 05
    Part I, Chs. 8–9: Dimensionality reduction and unsupervised learning — Covers dimensionality reduction, clustering, Gaussian mixtures, density estimation, and anomaly detection, extending the toolkit to unlabeled data and to the problems of high-dimensional features.
  6. 06
    Part II, Chs. 10–11: Neural nets with Keras and training deep nets — Introduces neural networks and the Keras API, then the techniques for training deep nets (initialization, normalization, optimizers, regularization), moving from classical ML to deep learning.
  7. 07
    Part II, Chs. 12–13: TensorFlow customization and data loading — Covers custom models and training with TensorFlow, and loading and preprocessing large amounts of data efficiently, which supplies the engineering infrastructure for scale.
  8. 08
    Part II, Chs. 14–16: CNNs, RNNs, and NLP — Applies specialized architectures to vision (convolutional nets) and to sequences and language (RNNs, LSTMs, encoder/decoders, attention/Transformers).
  9. 09
    Part II, Chs. 17–18: Generative learning and Reinforcement Learning — Covers autoencoders and GANs for generative learning, and agents that learn strategies by trial and error through Reinforcement Learning.
  10. 10
    Part II, Ch. 19: Training and deploying TensorFlow models at scale — Closes the arc by returning to production concerns: serving, distributed training, and the maintenance of deployed models, which matches the workflow's final stage in Part I.

What it leaves unsolved

How much theory is 'enough' to use these tools responsibly?

The book chooses 'just a little bit of theory' and says college-level math is needed only 'if you care about what's under the hood'. It does not say where intuition from working code stops being enough, for instance when debugging a model that trains but behaves oddly.

How can you tell how much data is enough, and whether data is truly representative, before deployment?

Quantity, nonrepresentativeness, and quality are named as the main failure sources. They are hard to diagnose in advance, and the framing gives heuristics and train-dev sets rather than a definitive test.

When should deep learning be chosen over the classical methods of Part I?

The book warns not to rush into deep learning and says it needs more data and compute. It leaves the crossover point dependent on the problem, with no firm decision rule.

How can a model's honest generalization error be known once the world changes?

Models 'rot' over time, so test-set estimates go stale. Monitoring, retraining, and rollback are advised, but how often to retrain or how to detect drift early is context-dependent and left open.

How durable is the tooling advice given fast-moving frameworks?

The text ties itself to TensorFlow 2.0 and tf.keras, and notes that Keras can run on several backends. Library APIs change quickly, so the specifics may date even if the concepts persist.

Why do deep networks generalize well despite their enormous capacity?

The book treats overfitting as controlled by regularization and validation, but a deeper account of why large networks work at all lies outside a hands-on, light-theory scope.

Where it falls short — a fair critique

incomplete

The prerequisites assume Python, NumPy, pandas, and Matplotlib plus college-level calculus, linear algebra, and statistics. This sits uneasily with the aim of serving readers who know 'close to nothing' about ML. The math is only a quick tutorial in the notebooks, so readers lacking it may copy code without understanding it.

incomplete

The workflow stresses honest evaluation and deployment monitoring but covers little on ethics, fairness, bias in data, interpretability, privacy, or the human consequences of deployed systems. 'Nonrepresentative data' is treated mostly as a statistical problem, not a social one.

illogical

The 'little bit of theory' approach rests on the claim that intuition from working examples suffices, yet the book also says bad algorithms (overfitting, underfitting) and bad data are the central risks. Diagnosing them often needs the theoretical understanding the book downplays, so the pedagogy and its goal pull against each other.

incomplete

The breadth (from linear regression to GANs, Transformers, RL, and distributed deployment) means some topics get survey-level treatment. The reader may gain a wide on-ramp but not enough depth in any one area to build state-of-the-art systems, and RL and generative models in particular are compressed.

uninformed

Because the book is built on one tool stack (Scikit-Learn, Keras, TensorFlow), it gives limited attention to alternatives (for example other deep learning frameworks and MLOps platforms), and it may date as the ecosystem shifts. The claim of a 'comprehensive on-ramp' is therefore bounded by the 2019 landscape.

misinformed

The claim that a disciplined workflow is more valuable than knowing many algorithms is a defensible but unsupported generalization. The text offers experience and example rather than evidence, and in domains such as vision or language, architecture choice can dominate outcomes. The framing risks understating how much algorithmic knowledge matters.

Before you apply it

Using it well

Where the method fits, who it’s for, and the honest case for and against — so you apply it where it works.

Is this book for you?

For you if

  • You can program in Python and want to build working learning systems, not just read theory
  • You learn best by running code in Jupyter notebooks and experimenting
  • You are a developer, analyst, or engineer who wants a broad on-ramp from classical ML to deep learning
  • You want a disciplined project workflow from problem framing to deployment and monitoring

Skip it if

  • You have never programmed and are unwilling to learn Python first
  • You want a proof-based, theory-first treatment of statistical learning
  • You are already an experienced practitioner seeking only cutting-edge research or post-2019 tooling
  • You only need no-code or high-level business awareness of ML

Need first

  • Python programming experience
  • Familiarity with NumPy, pandas, and Matplotlib
  • College-level math (calculus, linear algebra, probability, statistics) if you want to understand what's under the hood
  • Jupyter basics (covered in Chapter 2)
  • Mastery of Part I fundamentals before starting deep learning in Part II

When it applies — and when it doesn’t

Use it
  • Building a first working ML model on tabular data (e.g., predicting prices or classifying records) with Scikit-Learn — Part I's end-to-end workflow, pipelines, and runnable notebooks are built for exactly this.
  • Learning ML as a Python programmer with no prior ML background — The book assumes only Python and NumPy/pandas/Matplotlib familiarity and teaches the rest through working code.
  • Estimating how well a model will generalize before shipping it — Train/validation/test and train-dev design plus cross-validation are core to the book's evaluation guidance.
  • Image, sequence, language, or generative tasks (CNNs, RNNs, Transformers, GANs) with Keras/TensorFlow — Part II covers these architectures, but expect to need more data, compute, and specialized design.
  • Large-scale production training and serving across GPU servers — The book covers distributed training and deploying TensorFlow models at scale, though ops depth may need extra resources.
Adapt it
  • Jumping straight into deep learning without mastering the fundamentals — The author explicitly warns not to rush into deep waters; neural-net debugging relies on Part I concepts like overfitting and validation.
  • Small, unrepresentative, or noisy datasets — The book names insufficient or nonrepresentative data and poor features as a core failure mode; a clever algorithm cannot fix them.
  • Deploying a model and treating the project as finished — Models rot, so you need monitoring, data quality checks, retraining automation, and rollback.
  • Wanting a rigorous mathematical derivation of why algorithms work — The book deliberately offers 'just enough math' and favors intuition over proofs; you will need supplementary theory texts.
  • Relying on the book alone for the latest cutting-edge research or newer framework versions — It is pinned to TensorFlow 2 (2019 edition), so APIs and state-of-the-art methods may have since moved on.
Not here
  • Problems that simple explicit rules solve well and the data is scarce — ML is justified where traditional programming is too complex or brittle; otherwise it adds needless complexity.
  • Tuning on the test set or evaluating with no held-out data — This produces dishonest estimates of generalization error, which the book's validation discipline exists to prevent.

The honest case

Strongest case for

  • Most real-world ML failures come from bad data, overfitting, or weak validation rather than the algorithm chosen, so a disciplined workflow beats knowing many algorithms
  • Concrete, runnable examples build intuition faster and transfer to real projects better than abstract theory
  • Teaching Scikit-Learn fundamentals before deep learning gives readers the vocabulary (overfitting, regularization, cross-validation) that makes neural nets debuggable
  • Treating deployment as an ongoing process, with monitoring, retraining, and rollback, matches how ML systems actually behave in production as data drifts

Strongest objection

  • A code-first, 'just enough math' approach can produce practitioners who run recipes without understanding why they work, and who struggle when a problem falls outside the examples
  • Breadth across many algorithms and architectures in one book means any single topic gets shallow treatment
  • Tying instruction to specific library versions (TensorFlow 2, 2019) means much of the code ages quickly even if the concepts endure
  • The emphasis on workflow and generic best practices may understate that domain knowledge and data access often matter more than the modeling process
Source notes

The model's constructs are drawn from the source element(s); load-bearing constructs are corroborated across the shelf, emerging ones are flagged.

Ideas covered by the source notes

  • Training Data Quantity
  • Training Data Quality and Representativeness
  • Feature Engineering
  • Model Complexity
  • Regularization Strength
  • Hyperparameter Tuning and Model Selection

Movement V

Measure

Use available assessments to reflect on what you have learned.

In this part

A way to gauge yourself against the book's model, and the instruments it gives you.

  • — A self-check built from the book
  • — Instruments and what you'd measure next

Learning curriculum

After this book, you can…

The book's learning objectives, classified by Bloom's taxonomy and ordered so each builds on the ones before it.

01Foundational — know & understand
  1. explain
    After this book you can explain what Machine Learning is, when it is preferable to traditional programming, and classify ML systems (supervised/unsupervised, batch/online, instance-based/model-based).
    Check: Short-answer or quiz questions: given several problem scenarios, decide whether ML is appropriate and label each system's category with justification.
02Working — apply
  1. select
    After this book you can frame an ML problem and choose a performance measure (e.g., RMSE, precision/recall) aligned with the business objective and data characteristics.
    Check: Given a business scenario, write a problem framing (supervised type, pipeline, metric) and defend the metric choice.
  2. implement
    After this book you can create a representative test set early (including stratified sampling) and use training/validation/train-dev sets and cross-validation to obtain honest estimates of generalization error while avoiding data snooping.
    Check: Coding task in Scikit-Learn: split data with stratified sampling, run cross-validation, and explain why the test set must remain untouched.
  3. construct
    After this book you can build reusable preprocessing pipelines that clean data, handle missing values and categorical attributes, scale features, and create combined attributes.
    Check: Hands-on lab: write a Scikit-Learn Pipeline/ColumnTransformer with custom transformers that is applied identically to train, validation, and production data.
  4. apply
    After this book you can apply dimensionality reduction and unsupervised learning (PCA, clustering, anomaly detection) to explore data, reduce features, and support downstream tasks.
    Check: Task: reduce a dataset with PCA and cluster it, then show the effect on a downstream model's performance or training time.
  5. train
    After this book you can train and compare classical models (linear/polynomial regression, logistic regression, SVMs, decision trees, ensembles) for regression and classification tasks.
    Check: Project: train several model types on a dataset, evaluate with cross-validation and appropriate metrics (confusion matrix, precision/recall, ROC), and report results.
  6. apply
    After this book you can apply regularization techniques (Ridge, Lasso, Elastic Net, early stopping, dropout, tree constraints) to control model capacity and improve generalization.
    Check: Experiment: tune regularization strength on an overfitting model and show the effect on validation versus training error.
  7. tune
    After this book you can fine-tune models by systematically searching hyperparameters (grid and randomized search) with validation data and select the best configuration without leaking test data.
    Check: Lab: run GridSearchCV/RandomizedSearchCV, justify the search space, and evaluate the final model once on the test set.
03Advanced — analyze & judge
  1. diagnose
    After this book you can diagnose the main problems that arise from bad data (insufficient quantity, nonrepresentative samples, poor quality, irrelevant features) and propose remedies.
    Check: Case-study exercise: given a described dataset and poor model behavior, identify the data problems (e.g., sampling bias, noise, missing values) and recommend fixes.
  2. diagnose
    After this book you can recognize overfitting and underfitting from learning curves and train/validation error, and relate them to model complexity and the bias/variance tradeoff.
    Check: Interpret provided learning curves and error numbers to decide whether a model overfits or underfits and what to change.
04Mastery — synthesize & create
  1. build
    After this book you can build, train, and regularize deep neural networks in Keras/TensorFlow (including CNNs, RNNs/Transformers, autoencoders, GANs) for vision, sequence, language, and generative tasks.
    Check: Programming projects: implement and train a dense net, a CNN image classifier, and a sequence model, using callbacks, dropout and early stopping; compare architectures' validation results.
  2. design
    After this book you can deploy a trained model (e.g., via TensorFlow Serving or a cloud service) and design monitoring, data-quality checks, automated retraining, and rollback to keep it performing over time.
    Check: Produce a deployment and maintenance plan and a working serving endpoint, including live metric monitoring, input-validation checks, retraining triggers, and a rollback procedure.
  3. integrate
    After this book you can execute and critique a disciplined end-to-end ML project from problem framing to deployment, justifying each workflow decision.
    Check: Capstone: deliver a complete notebook-based project (framing, data exploration, pipeline, model selection, tuning, deployment/monitoring plan) with a written rationale.
  4. judge
    After this book you can evaluate whether a deep learning or reinforcement learning approach is justified given the data, compute, and problem constraints compared with simpler models.
    Check: Written critique of scenarios: recommend simple ML vs. deep learning with reasoning about data quantity, compute cost, and expected generalization.

How to measure it

Turning each idea into a measure

For each construct: how to operationalize it, the observable signals to look for, and how well it holds up.

Training Data Quantity

Count of training instances (rows) in the dataset used to fit the model.

Observable signals
  • dataset row count
  • learning curve plateau behavior
Scale

Ratio scale (non-negative integer count).

Holds up?

Quantity alone is insufficient if data is nonrepresentative. · Highly reliable as a direct count.

Training Data Quality and Representativeness

Composite of missing-value rate, outlier rate, sampling-bias measures, and proportion of irrelevant features.

Observable signals
  • percent missing per feature
  • outlier counts
  • distribution comparison between training and production data
Scale

Mixed: ratios for missing/outlier rates; categorical flags for bias.

Holds up?

Representativeness is difficult to verify; sampling bias may be hidden. · Depends on quality of audit procedures.

Feature Engineering

Set of preprocessing and transformation steps applied (selection, extraction, scaling, attribute combinations) and their effect on feature importance.

Observable signals
  • number and type of transformations in pipeline
  • feature importance scores
  • correlation of engineered features with target
Scale

Mostly categorical/ordinal documentation of steps plus continuous importance scores.

Holds up?

Effectiveness depends on domain knowledge and is task-specific. · Reproducible when codified in pipelines.

Model Complexity

Proxied by parameter count, polynomial degree, tree depth, or number/size of network layers.

Observable signals
  • polynomial degree
  • tree max depth
  • layer/neuron counts
Scale

Ratio/ordinal depending on proxy.

Holds up?

A single proxy may not capture effective capacity after regularization. · Reliable when defined by architecture specification.

Regularization Strength

Value of regularization hyperparameters (e.g., alpha for Ridge/Lasso, l1_ratio for Elastic Net, dropout rate, early-stopping point).

Observable signals
  • alpha value
  • penalty type
  • dropout rate
Scale

Ratio scale for continuous hyperparameters; categorical for penalty type.

Holds up?

Strength must be tuned; too high causes underfitting. · Exactly specified and reproducible.

Hyperparameter Tuning and Model Selection

Method (grid/randomized search), search space size, number of candidate models evaluated, and selected configuration.

Observable signals
  • number of combinations tried
  • best validation score
  • selected hyperparameters
Scale

Mixed ratio and categorical.

Holds up?

Validity depends on not overfitting the validation set. · Reproducible with fixed random seeds.

Validation and Evaluation Rigor

Presence and correctness of test, validation, and train-dev sets; use of cross-validation; avoidance of data snooping.

Observable signals
  • existence of held-out test set
  • cross-validation usage
  • representativeness of validation/test sets
Scale

Largely categorical/ordinal checklist of practices.

Holds up?

Subjective in assessing representativeness. · Reliable if procedures are documented.

Overfitting/Underfitting State

Gap between training error and validation error; learning curve shapes.

Observable signals
  • train-validation error gap
  • learning curve convergence
  • training error near zero with high validation error
Scale

Continuous error gap; interpreted ordinally.

Holds up?

Requires reliable validation error estimate. · Reproducible given fixed splits.

Generalization Performance

Task-appropriate metric on held-out test set and in production (RMSE/MAE for regression; accuracy, precision, recall, F1, ROC AUC for classification).

Observable signals
  • test set RMSE
  • precision/recall/F1
  • ROC AUC
  • generalization error
Scale

Ratio/interval depending on metric.

Holds up?

Metric choice must match the task and data skew. · Reliable with sufficiently large, representative test sets.

Deployment Monitoring and Maintenance

Presence of live performance monitoring, input data quality checks, alerting, retraining automation, and rollback capability.

Observable signals
  • monitoring alerts
  • retraining frequency
  • data quality metrics over time
  • model version backups
Scale

Mixed categorical practice flags and continuous frequency/quality metrics.

Holds up?

Some performance can only be inferred via downstream metrics or human raters. · Depends on robustness of monitoring infrastructure.

Self-assessment

Where would you like to improve?

This is a structured self-diagnostic built from the model — a mirror for reflection, not a validated psychometric scale. For validated measurement, see the instruments below.

1 = Strongly Disagree · 7 = Strongly Agree

Capabilitythe practices and skills you deploy
  • I have enough training examples available to train my models to perform well on the task at hand.
  • I train my models on data that still contains noticeable errors, noise, irrelevant features, or cases that do not represent what the model will see in production.
  • I regularly select, scale, and combine input features so that my models learn from the most informative inputs.
  • I deliberately choose my model's complexity to match the amount and difficulty of my data, and I compare simpler and more complex options.
  • I routinely apply and tune regularization, such as penalties, dropout, or early stopping, to limit overfitting in my models.
Alignmentthe outcomes you steer toward
  • I measure my models on held-out data using metrics suited to the task, and the results show they perform well on unseen data.
Motivationthe states you cultivate in others
  • I regularly compare training and validation performance to check whether my models are overfitting or underfitting, and I act on what I find.
0 of 7 answered

Proposed measures — starter instruments where no validated one was found

Training Data Quantity Sufficiency Index

proposed · not validated

Rated for your team or hiring process — not a personal self-check.

  1. The team documents the number of labeled training examples available for each model and compares it against an estimate of the volume the chosen algorithm needs.
  2. Learning curves or equivalent experiments are on file showing how validation performance changes as training set size increases.
  3. A defined, resourced process exists for acquiring, generating, or augmenting additional training examples when data volume is found insufficient.

Scale: 1–7 (Strongly Disagree → Strongly Agree), rated by an evaluator or the team. Average the items; treat ≤3 as a gap to close in the process.

Training Data Quality and Representativeness Index

proposed · not validated

Rated for your team or hiring process — not a personal self-check.

  1. Documented data-cleaning procedures for handling errors, outliers, missing values, and mislabeled examples are applied to every training dataset before model training.
  2. The training sample is routinely compared with the production or target population, and gaps such as sampling bias or missing subgroups are recorded and addressed.
  3. Features in the training data are reviewed for relevance, and irrelevant or noisy features are removed or justified in writing.

Scale: 1–7 (Strongly Disagree → Strongly Agree), rated by an evaluator or the team. Average the items; treat ≤3 as a gap to close in the process.

Feature Engineering Practice Index

proposed · not validated

Rated for your team or hiring process — not a personal self-check.

  1. Candidate features are selected, extracted, or created through a documented process that includes domain input and is recorded in version control.
  2. Feature scaling and transformations are applied through a reproducible pipeline that is fitted on training data only and reused unchanged at prediction time.
  3. The contribution of engineered features, such as combined attributes, is evaluated through ablation or feature-importance analysis, and the results inform which features are kept.

Scale: 1–7 (Strongly Disagree → Strongly Agree), rated by an evaluator or the team. Average the items; treat ≤3 as a gap to close in the process.

Sources

The cheat sheet

Everything, on one page

One key takeaway from each section, with links to read more.

Publication details

Consult the sources listed in this guide for further reading. Edition 1 · Updated 2026-10-03.

Explore related books and profiles in the library.

Take it with you

The main guide above is free to read. This purchase includes 36 additional tools and examples — 9 frameworks, 9 checklists, 9 case studies and 9 templates — plus the full sections and the ebook itself: an epub and a PDF covering all 10 sections. Every format, yours to keep — permanently, including every future update. When this guide is deepened, you get the new edition at no cost.

One payment. The main guide stays free to read.

Get one letter a month: the new guides worth your time, and where the books disagree.

One letter a month from Leading With Data, plus a short welcome. Your address is used for this letter only. Unsubscribe any time.