Buy new:
$36.99$36.99
FREE delivery:
Saturday, Feb 11
Ships from: Amazon.com Sold by: Amazon.com
Buy Used: $34.67
Other Sellers on Amazon
& FREE Shipping
91% positive over last 12 months
Usually ships within 2 to 3 days.
+ $3.99 shipping
88% positive over last 12 months
Usually ships within 3 to 4 days.
& FREE Shipping
82% positive over last 12 months
Download the free Kindle app and start reading Kindle books instantly on your smartphone, tablet, or computer - no Kindle device required. Learn more
Read instantly on your browser with Kindle for Web.
Using your mobile phone camera - scan the code below and download the Kindle app.
Follow the Authors
OK
Machine Learning Design Patterns: Solutions to Common Challenges in Data Preparation, Model Building, and MLOps 1st Edition
| Price | New from | Used from |
- Kindle
$13.20 - $35.14 Read with Our Free App - Paperback
$34.67 - $36.9911 Used from $30.71 23 New from $32.99
Enhance your purchase
The design patterns in this book capture best practices and solutions to recurring problems in machine learning. The authors, three Google engineers, catalog proven methods to help data scientists tackle common problems throughout the ML process. These design patterns codify the experience of hundreds of experts into straightforward, approachable advice.
In this book, you will find detailed explanations of 30 patterns for data and problem representation, operationalization, repeatability, reproducibility, flexibility, explainability, and fairness. Each pattern includes a description of the problem, a variety of potential solutions, and recommendations for choosing the best technique for your situation.
You'll learn how to:
- Identify and mitigate common challenges when training, evaluating, and deploying ML models
- Represent data for different ML model types, including embeddings, feature crosses, and more
- Choose the right model type for specific problems
- Build a robust training loop that uses checkpoints, distribution strategy, and hyperparameter tuning
- Deploy scalable ML systems that you can retrain and update to reflect new data
- Interpret model predictions for stakeholders and ensure models are treating users fairly
- ISBN-101098115783
- ISBN-13978-1098115784
- Edition1st
- PublisherO'Reilly Media
- Publication dateNovember 10, 2020
- LanguageEnglish
- Dimensions9.06 x 0.94 x 6.85 inches
- Print length408 pages
More items to explore
From the brand
-
-
Sharing the knowledge of experts
O'Reilly's mission is to change the world by sharing the knowledge of innovators. For over 40 years, we've inspired companies and individuals to do new things (and do them better) by providing the skills and understanding that are necessary for success.
Our customers are hungry to build the innovations that propel the world forward. And we help them do just that.
From the Publisher
About This Book
In engineering disciplines, design patterns capture best practices and solutions to commonly occurring problems. They codify the knowledge and experience of experts into advice that all practitioners can follow. This book is a catalog of machine learning design patterns that we have observed in the course of working with hundreds of machine learning teams.
Who Is This Book For?
Introductory machine learning books usually focus on the what and how of machine learning (ML). They then explain the mathematical aspects of new methods from AI research labs and teach how to use AI frameworks to implement these methods.
This book, on the other hand, brings together hard-earned experience around the “why” that underlies the tips and tricks that experienced ML practitioners employ when applying machine learning to real-world problems.
We assume that you have prior knowledge of machine learning and data processing. This is not a fundamental textbook on machine learning. Instead, this book is for you if you are a data scientist, data engineer, or ML engineer who is looking for a second book on practical machine learning.
If you already know the basics, this book will introduce you to a catalog of ideas, some of which you may recognize, and give those ideas a name so that you can confidently reach for them. If you're a computer science student headed for a job in industry, this book will round out your knowledge and prepare you for the professional world. It will help you learn how to build high-quality ML systems.
What’s Not in the Book
This is a book that is primarily for ML engineers in the enterprise, not ML scientists in academia or industry research labs.
We purposefully don't discuss areas of active research—you will find very little here, for example, on machine learning model architecture (bidirectional encoders, or the attention mechanism, or short-circuit layers, for example) because we assume that you will be using a pre-built model architecture (Ex: ResNet-50 or GRUCell), not writing your own image classification or recurrent neural network.
Here are some concrete examples of areas that we intentionally stay away from because we believe that these topics are more appropriate for college courses and ML researchers:
ML algorithms -- We do not cover the differences between random forests and neural networks, for example. This is covered in introductory machine learning textbooks.
Building blocks -- We do not cover different types of gradient descent optimizers or activation functions. We recommend using Adam and ReLU—in our experience, the potential for improvements in performance by making different choices in these sorts of things tends to be minor.
ML model architectures -- If you are doing image classification, we recommend that you use an off-the-shelf model like ResNet or whatever the latest hotness is at the time you are reading this. Leave the design of new image classification or text classification models to researchers who specialize in this problem.
Model layers -- You won’t find convolutional neural networks or recurrent neural networks in this book. They are doubly disqualified—first, for being a building block and second, for being something you can use off-the-shelf.
Custom training loops -- Just calling model.fit() in Keras will fit the needs of practitioners.
In this book, we have tried to include only common patterns of the kind that machine learning engineers in enterprises will employ in their day-to-day work.
As an analogy, consider data structures. While a college course on data structures will delve into the implementations of different data structures, and a researcher on data structures will have to learn how to formally represent their mathematical properties, the practitioner can be more pragmatic. An enterprise software developer simply needs to know how to work effectively with arrays, linked lists, maps, sets, and trees. It is for a pragmatic practitioner in machine learning that this book is written.
Editorial Reviews
About the Author
Valliappa (Lak) Lakshmanan is Global Head for Data Analytics and AI Solutions on Google Cloud. His team builds software solutions for business problems using Google Cloud's data analytics and machine learning products. He founded Google's Advanced Solutions Lab ML Immersion program. Before Google, Lak was a Director of Data Science at Climate Corporation and a Research Scientist at NOAA.
Sara Robinson is a Developer Advocate on Google's Cloud Platform team, focusing on machine learning. She inspires developers and data scientists to integrate ML into their applications through demos, online content, and events. Sara has a bachelor’s degree from Brandeis University. Before Google, she was a Developer Advocate on the Firebase team.
Michael Munn is an ML Solutions Engineer at Google where he works with customers of Google Cloud on helping them design, implement, and deploy machine learning models. He also teaches an ML Immersion Program at the Advanced Solutions Lab. Michael has a PhD in mathematics from the City University of New York. Before joining Google, he worked as a research professor.
Product details
- Publisher : O'Reilly Media; 1st edition (November 10, 2020)
- Language : English
- Paperback : 408 pages
- ISBN-10 : 1098115783
- ISBN-13 : 978-1098115784
- Item Weight : 1.45 pounds
- Dimensions : 9.06 x 0.94 x 6.85 inches
- Best Sellers Rank: #27,759 in Books (See Top 100 in Books)
- #5 in Business Intelligence Tools
- #6 in Machine Theory (Books)
- #42 in Artificial Intelligence & Semantics
- Customer Reviews:
About the authors

Lak is Head for Data Analytics and AI Solutions on Google Cloud. His team builds software solutions for business problems using Google Cloud's data analytics and machine learning products. He is the author of Machine Learning Design Patterns, Data Science on GCP (O'Reilly), BigQuery the Definitive Guide (O'Reilly). He founded Google's Advanced Solutions Lab ML Immersion program. Before Google, Lak was a Director of Data Science at Climate Corporation and a Research Scientist at NOAA. He's the original author of several Coursera specializations including Machine Learning on GCP, Advanced Machine Learning on GCP, and Data Engineering.
Follow him on Twitter at @lak_luster.
http://www.vlakshman.com/

Discover more of the author’s books, see similar authors, read author blogs and more
Customer reviews
Customer Reviews, including Product Star Ratings help customers to learn more about the product and decide whether it is the right product for them.
To calculate the overall star rating and percentage breakdown by star, we don’t use a simple average. Instead, our system considers things like how recent a review is and if the reviewer bought the item on Amazon. It also analyzed reviews to verify trustworthiness.
Learn more how customers reviews work on AmazonReviewed in the United States on January 2, 2022
-
Top reviews
Top reviews from the United States
There was a problem filtering reviews right now. Please try again later.
I'm 1/3 into the book (so maybe premature for 5 stars) and it's been a dense but interesting read so far. There have been times where I have to lookup terms but the material has still been approachable. The language in the first couple chapters could probably be simplified some but it was sufficient for me with a lot of coffee. I expect to still have very incomplete knowledge after finishing this book due to lack of practical experience. However, my goal is to build a large scaffolding of knowledge/concepts on ML that I can use as a foundation for future learning and broaden my toolbox before I start hacking code. When I was learning C++, I found the Gang of Four book "Design Patterns" accomplished a similar goal to help bridge the gap between academic knowledge and practical software engineering. Much like with the GoF book I suspect I may be re-reading parts of this book in the future when my knowledge has matured. Some may prefer doing a lot of ML coding before reading this book, but I like to have a lot of background knowledge/tools before tackling code - personal preference I guess.
I seem to have discovered an error/typo regarding "precision" vs "recall" in chapter 3:
Page 135 paragraph 2: "If we care more that our model is correct whenever it makes a positive class prediction we'd optimize our prediction threshold for recall".
I think the last word in that sentence should be "precision". The terms are defined on page 124 paragraph 2.
As a side note, I bought this to be better prepared for ML architecture and design interviews.
If you are in a hurry, I think the content in Chapters 2, 3, and 4 are great. 5 was somewhat relevant for me and Chapters 6, and 7 are not really relevant until you are actually neck-deep in the models, so they did not really apply to me.
Chapter 8 was fantastic since it had a Common Patterns by Use Case and Data Type section, and enumerated many different types of problems and the tools that one might use to tackle them.
I am satisfied with what I got from this book.
Finished 4/5 of the book and expect to keep it close to my desk. Highly recommended.
Top reviews from other countries
There are many many books out there on Machine Learning detailing techniques, architectures, and frameworks but surprisingly this is the first of its kind to address common design patterns. Good ML design patterns hold their relevance over time much more than a framework or architecture might, so it's surprising that this book stands alone in this topic.
The design patterns detailed in the book showcase the experience of the authors and clearly the patterns have emerged from the trenches of production to prove themselves battle tested! The authors understand that like most things in Software Engineering it's all about tradeoffs when making decisions around machine learning problems. Every pattern in the book is clearly framed, laid out, and explained.
I'd highly recommend this book to any ML practitioner but especially those whose focus is on devoting production ready Ml systems.
Reviewed in the United Kingdom 🇬🇧 on November 14, 2020
There are many many books out there on Machine Learning detailing techniques, architectures, and frameworks but surprisingly this is the first of its kind to address common design patterns. Good ML design patterns hold their relevance over time much more than a framework or architecture might, so it's surprising that this book stands alone in this topic.
The design patterns detailed in the book showcase the experience of the authors and clearly the patterns have emerged from the trenches of production to prove themselves battle tested! The authors understand that like most things in Software Engineering it's all about tradeoffs when making decisions around machine learning problems. Every pattern in the book is clearly framed, laid out, and explained.
I'd highly recommend this book to any ML practitioner but especially those whose focus is on devoting production ready Ml systems.
I was very excited to read it cover-to-cover after checking the title, and that the authors drew parallels to Design Patterns in Software Engineering.
Their patterns looked more like hacks/tricks than Design Patterns. I still am not sure what/how exactly Design Pattern should be -- but certainly they should go beyond proving tips and tricks.
For example, I was more interested in "problem abstractions" and then provide a map to a "solution template". Lot of techniques that exist in the wild today can be mapped to simple problem types, and as a results, same technique can be applied, and avoid reinventing the wheel -- think of "canonical" forms in the optimisation literature. Similar things exists in Statistics literature also. From models persepctive, the likes of Linear Models, Generalized Linear Models, Structural Equation Models, Seemingly Unrelated Regressions, Measurement-Error-in-Predcictors etc. There are quite a many. While it is impossible to create a taxonomy out of it, at least, I hoped some exercise in that direction would have taken place.
What I was looking for in Design Patterns is:
<IF> your response is binary (0/1), both features are categorical, objective is to predict responses at the unobserved combinations.
<Then>
Solution template
The above problem is a "pattern" -- Collaborative Filtering, Netflix movie type, Item Response Theory, Logistic Regression -- all are different names they go with, depending on the reader's familiarity/ domain knowledge.
The above is simply the "model" dimension. They are are other dimensions concerned with data, pre-processing, evaluation etc.
In summary, I think that Design Patterns is a too strong word they used and probably they have not done justice to it. Instead, someone should read it as a cookbook of ML Best Practices, and things to watch out for, while implementing (not so much of a design). From that perspective, this book does justice.
It covers many important design patterns for MLE and MLOps that you cannot find in other books.
This would be a great book if you are planning to use Google products.
Cover should have specified that it is written for Google Cloud AI.
I returned it as I prefer to use open-source for this ever-changing field.













