This second edition delves deeper into key machine learning topics, CI/CD, and system design
Explore core MLOps practices, such as model management and performance monitoring
Build end-to-end examples of deployable ML microservices and pipelines using AWS and open-source tools
Description
The Second Edition of Machine Learning Engineering with Python is the practical guide that MLOps and ML engineers need to build solutions to real-world problems. It will provide you with the skills you need to stay ahead in this rapidly evolving field.
The book takes an examples-based approach to help you develop your skills and covers the technical concepts, implementation patterns, and development methodologies you need. You'll explore the key steps of the ML development lifecycle and create your own standardized "model factory" for training and retraining of models. You'll learn to employ concepts like CI/CD and how to detect different types of drift.
Get hands-on with the latest in deployment architectures and discover methods for scaling up your solutions. This edition goes deeper in all aspects of ML engineering and MLOps, with emphasis on the latest open-source and cloud-based technologies. This includes a completely revamped approach to advanced pipelining and orchestration techniques.
With a new chapter on deep learning, generative AI, and LLMOps, you will learn to use tools like LangChain, PyTorch, and Hugging Face to leverage LLMs for supercharged analysis. You will explore AI assistants like GitHub Copilot to become more productive, then dive deep into the engineering considerations of working with deep learning.
Who is this book for?
This book is designed for MLOps and ML engineers, data scientists, and software developers who want to build robust solutions that use machine learning to solve real-world problems. If you’re not a developer but want to manage or understand the product lifecycle of these systems, you’ll also find this book useful. It assumes a basic knowledge of machine learning concepts and intermediate programming experience in Python. With its focus on practical skills and real-world examples, this book is an essential resource for anyone looking to advance their machine learning engineering career.
What you will learn
Plan and manage end-to-end ML development projects
Explore deep learning, LLMs, and LLMOps to leverage generative AI
Use Python to package your ML tools and scale up your solutions
Get to grips with Apache Spark, Kubernetes, and Ray
Build and run ML pipelines with Apache Airflow, ZenML, and Kubeflow
Detect drift and build retraining mechanisms into your solutions
Improve error handling with control flows and vulnerability scanning
Host and build ML microservices and batch processes running on AWS
I have experience as a statistician, data scientist, software engineer, programmer, and I would say a little bit as an ML engineer. In Chapter 1, the author talks about the different roles, so I look forward to reading that to compare against my experience! haha. I don't have any experience using tools to build pipelines, so I am looking forward to reading about that. I like the content and structure of the book, and with only 9 chapters it's not overwhelming. I feel like I could get up to speed really quickly. I have familiarity with many parts, but not everything. I am interested in reading the section about "Choosing a style" - OOP or FP. I am also interested in exploring the "standard ML patterns" - data lakes, microservices, event-based designs and batching. I am interested in learning more about using AWS, so it's great that that's covered. The chapter on scaling is definitely interesting, as is the chapter on LLMs. I have watched interviews with the OpenAI and MSFT folks on the GPT models and I have interacted with ChatGPT. The LLMs look fun to try and the python code in the book looks very easy to read.I like this book a lot. It concisely convers all the points in moving from concept to solution, including what tools can be used. I think it will be a great starting point for me. I can't wait to try it out!
Amazon Verified review
Ishan DuttaOct 30, 2023
5
The width of topics covered along with the code provided makes this a great book! I liked how it started with basics of ML pipelines and went all the way to different LLMOps and so on. The explanation along with the provided diagrams make it easy to understand and retain. I highly recommend this book.
Amazon Verified review
zeroKelvinSep 09, 2023
5
There are a lot of books out there that walk you through the steps of putting together a complex ML model using ideal data in a closed setting. This is not one of those books. ML engineering with Python is instead a comprehensive guide to the way machine learning works in practice at most companies.The book does a great job of explaining the MLops tools that almost all businesses today rely on to train, deploy, serve, and iterate on models. In my opinion, the concepts in this book are far more valuable than understanding how to use specific ML frameworks to solve problems. Simply understanding that these tools exist, and knowing how they are used will give engineers a leg up, and lead to more revenue generating impact than any gold medal kaggle model could produce on its own.
Amazon Verified review
RichardApr 21, 2024
5
I recently had the pleasure of reviewing "Machine Learning Engineering with Python - Second Edition" by Andrew McMahon. As a NASA data analyst deeply engaged with the operational side of machine learning, I found this book to be a valuable resource for professionals dedicated to mastering MLOps and managing the lifecycle of ML models. Andrew effectively uses practical examples and a thorough examination of contemporary tools and methodologies to advance this field.One of the standout features of this book is McMahon's approach to integrating Python code to clarify the mechanics behind ML algorithms. While I chose not to run the scripts verbatim, I found them incredibly useful as references, enhancing both my existing projects and new initiatives. This method greatly assisted me in understanding the intricacies of ML pipelines and applying these insights across various applications.A suggestion for future readers would be to approach the first chapter last. The book begins with advanced topics that are more comprehensible after navigating through the foundational material presented in subsequent chapters. This adjustment could help flatten the learning curve and not become discouraged at the advanced material.That said, there are areas where the book could improve. The chapter dedicated to generative AI and large language models, for instance, would benefit from additional case studies that demonstrate their practical applications within industry. Moreover, a deeper focus on the ethical considerations of deploying AI systems at scale is necessary, given the increasing importance of ethics in our field.In conclusion, Andrew McMahon’s second edition is a comprehensive guide that I highly recommend to MLOps practitioners, ML engineers, and data scientists. Its depth of content, combined with practical, real-world applications, positions it as a critical read for professionals aiming to stay at the forefront of technology. If you're in the field, this book is undoubtedly a valuable addition to your professional toolkit.
Amazon Verified review
Rajesh Sathya KumarApr 04, 2024
5
I have been reading this book by Andy McMahon and just completed it. The book provided excellent coverage of ML Ops concepts, encompassing a wide range of ideas for building ML-powered apps.The Second Edition of this book also covers concepts from LLM and LLMOps. It also includes deeper content in every chapter. The amount of AI developments from 2021 (First edition) to 2023 (Second edition) is very evident from this book and makes it more exciting about the future.It also covers practical examples and applications built using scikit-learn, Spark, Airflow, Kubernetes, Keras, AWS, etc., and lists the key points discussed in each chapter.
Andrew Peter (Andy) McMahon is a machine learning engineer and data scientist with experience of working in, and leading, successful analytics and software teams. His expertise centers on building production-grade ML systems that can deliver value at scale. He is currently ML Engineering Lead at NatWest Group and was previously Analytics Team Lead at Aggreko.
He has an undergraduate degree in theoretical physics from the University of Glasgow, as well as master's and Ph.D. degrees in condensed matter physics from Imperial College London. In 2019, Andy was named Data Scientist of the Year at the International Data Science Awards. He currently co-hosts the AI Right podcast, discussing hot topics in AI with other members of the Scottish tech scene.
What is the digital copy I get with my Print order?
When you buy any Print edition of our Books, you can redeem (for free) the eBook edition of the Print Book you’ve purchased. This gives you instant access to your book when you make an order via PDF, EPUB or our online Reader experience.
What is the delivery time and cost of print book?
Shipping Details
USA:
'
Economy: Delivery to most addresses in the US within 10-15 business days
Premium: Trackable Delivery to most addresses in the US within 3-8 business days
UK:
Economy: Delivery to most addresses in the U.K. within 7-9 business days. Shipments are not trackable
Premium: Trackable delivery to most addresses in the U.K. within 3-4 business days! Add one extra business day for deliveries to Northern Ireland and Scottish Highlands and islands
EU:
Premium: Trackable delivery to most EU destinations within 4-9 business days.
Australia:
Economy: Can deliver to P. O. Boxes and private residences. Trackable service with delivery to addresses in Australia only. Delivery time ranges from 7-9 business days for VIC and 8-10 business days for Interstate metro Delivery time is up to 15 business days for remote areas of WA, NT & QLD.
Premium: Delivery to addresses in Australia only Trackable delivery to most P. O. Boxes and private residences in Australia within 4-5 days based on the distance to a destination following dispatch.
India:
Premium: Delivery to most Indian addresses within 5-6 business days
Rest of the World:
Premium: Countries in the American continent: Trackable delivery to most countries within 4-7 business days
Asia:
Premium: Delivery to most Asian addresses within 5-9 business days
Disclaimer: All orders received before 5 PM U.K time would start printing from the next business day. So the estimated delivery times start from the next day as well. Orders received after 5 PM U.K time (in our internal systems) on a business day or anytime on the weekend will begin printing the second to next business day. For example, an order placed at 11 AM today will begin printing tomorrow, whereas an order placed at 9 PM tonight will begin printing the day after tomorrow.
Unfortunately, due to several restrictions, we are unable to ship to the following countries:
Afghanistan
American Samoa
Belarus
Brunei Darussalam
Central African Republic
The Democratic Republic of Congo
Eritrea
Guinea-bissau
Iran
Lebanon
Libiya Arab Jamahriya
Somalia
Sudan
Russian Federation
Syrian Arab Republic
Ukraine
Venezuela
What is custom duty/charge?
Customs duty are charges levied on goods when they cross international borders. It is a tax that is imposed on imported goods. These duties are charged by special authorities and bodies created by local governments and are meant to protect local industries, economies, and businesses.
Do I have to pay customs charges for the print book order?
The orders shipped to the countries that are listed under EU27 will not bear custom charges. They are paid by Packt as part of the order.
A custom duty or localized taxes may be applicable on the shipment and would be charged by the recipient country outside of the EU27 which should be paid by the customer and these duties are not included in the shipping charges been charged on the order.
How do I know my custom duty charges?
The amount of duty payable varies greatly depending on the imported goods, the country of origin and several other factors like the total invoice amount or dimensions like weight, and other such criteria applicable in your country.
For example:
If you live in Mexico, and the declared value of your ordered items is over $ 50, for you to receive a package, you will have to pay additional import tax of 19% which will be $ 9.50 to the courier service.
Whereas if you live in Turkey, and the declared value of your ordered items is over € 22, for you to receive a package, you will have to pay additional import tax of 18% which will be € 3.96 to the courier service.
How can I cancel my order?
Cancellation Policy for Published Printed Books:
You can cancel any order within 1 hour of placing the order. Simply contact customercare@packt.com with your order details or payment transaction id. If your order has already started the shipment process, we will do our best to stop it. However, if it is already on the way to you then when you receive it, you can contact us at customercare@packt.com using the returns and refund process.
Please understand that Packt Publishing cannot provide refunds or cancel any order except for the cases described in our Return Policy (i.e. Packt Publishing agrees to replace your printed book because it arrives damaged or material defect in book), Packt Publishing will not accept returns.
What is your returns and refunds policy?
Return Policy:
We want you to be happy with your purchase from Packtpub.com. We will not hassle you with returning print books to us. If the print book you receive from us is incorrect, damaged, doesn't work or is unacceptably late, please contact Customer Relations Team on customercare@packt.com with the order number and issue details as explained below:
If you ordered (eBook, Video or Print Book) incorrectly or accidentally, please contact Customer Relations Team on customercare@packt.com within one hour of placing the order and we will replace/refund you the item cost.
Sadly, if your eBook or Video file is faulty or a fault occurs during the eBook or Video being made available to you, i.e. during download then you should contact Customer Relations Team within 14 days of purchase on customercare@packt.com who will be able to resolve this issue for you.
You will have a choice of replacement or refund of the problem items.(damaged, defective or incorrect)
Once Customer Care Team confirms that you will be refunded, you should receive the refund within 10 to 12 working days.
If you are only requesting a refund of one book from a multiple order, then we will refund you the appropriate single item.
Where the items were shipped under a free shipping offer, there will be no shipping costs to refund.
On the off chance your printed book arrives damaged, with book material defect, contact our Customer Relation Team on customercare@packt.com within 14 days of receipt of the book with appropriate evidence of damage and we will work with you to secure a replacement copy, if necessary. Please note that each printed book you order from us is individually made by Packt's professional book-printing partner which is on a print-on-demand basis.
What tax is charged?
Currently, no tax is charged on the purchase of any print book (subject to change based on the laws and regulations). A localized VAT fee is charged only to our European and UK customers on eBooks, Video and subscriptions that they buy. GST is charged to Indian customers for eBooks and video purchases.
What payment methods can I use?
You can pay with the following card types:
Visa Debit
Visa Credit
MasterCard
PayPal
What is the delivery time and cost of print books?
Shipping Details
USA:
'
Economy: Delivery to most addresses in the US within 10-15 business days
Premium: Trackable Delivery to most addresses in the US within 3-8 business days
UK:
Economy: Delivery to most addresses in the U.K. within 7-9 business days. Shipments are not trackable
Premium: Trackable delivery to most addresses in the U.K. within 3-4 business days! Add one extra business day for deliveries to Northern Ireland and Scottish Highlands and islands
EU:
Premium: Trackable delivery to most EU destinations within 4-9 business days.
Australia:
Economy: Can deliver to P. O. Boxes and private residences. Trackable service with delivery to addresses in Australia only. Delivery time ranges from 7-9 business days for VIC and 8-10 business days for Interstate metro Delivery time is up to 15 business days for remote areas of WA, NT & QLD.
Premium: Delivery to addresses in Australia only Trackable delivery to most P. O. Boxes and private residences in Australia within 4-5 days based on the distance to a destination following dispatch.
India:
Premium: Delivery to most Indian addresses within 5-6 business days
Rest of the World:
Premium: Countries in the American continent: Trackable delivery to most countries within 4-7 business days
Asia:
Premium: Delivery to most Asian addresses within 5-9 business days
Disclaimer: All orders received before 5 PM U.K time would start printing from the next business day. So the estimated delivery times start from the next day as well. Orders received after 5 PM U.K time (in our internal systems) on a business day or anytime on the weekend will begin printing the second to next business day. For example, an order placed at 11 AM today will begin printing tomorrow, whereas an order placed at 9 PM tonight will begin printing the day after tomorrow.
Unfortunately, due to several restrictions, we are unable to ship to the following countries: