Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Mastering Azure Machine Learning
Mastering Azure Machine Learning

Mastering Azure Machine Learning: Perform large-scale end-to-end advanced machine learning in the cloud with Microsoft Azure Machine Learning

Arrow left icon
Profile Icon Körner Profile Icon Kaijisse Waaijer
Arrow right icon
€18.99 per month
Full star icon Full star icon Full star icon Full star icon Half star icon 4.3 (6 Ratings)
Paperback Apr 2020 436 pages 1st Edition
eBook
€8.99 €29.99
Paperback
€36.99
Subscription
Free Trial
Renews at €18.99p/m
Arrow left icon
Profile Icon Körner Profile Icon Kaijisse Waaijer
Arrow right icon
€18.99 per month
Full star icon Full star icon Full star icon Full star icon Half star icon 4.3 (6 Ratings)
Paperback Apr 2020 436 pages 1st Edition
eBook
€8.99 €29.99
Paperback
€36.99
Subscription
Free Trial
Renews at €18.99p/m
eBook
€8.99 €29.99
Paperback
€36.99
Subscription
Free Trial
Renews at €18.99p/m

What do you get with a Packt Subscription?

Free for first 7 days. €18.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing
Table of content icon View table of contents Preview book icon Preview Book

Mastering Azure Machine Learning

1. Building an end-to-end machine learning pipeline in Azure

This first chapter covers all the required components for running a custom end-to-end machine learning (ML) pipeline in Azure. Some sections might be a recap of your existing knowledge with useful practical tips, step-by-step guidelines, and pointers to using Azure services to perform ML at scale. You can see it as an overview of the book, where we will dive into each section in great detail with many practical examples and a lot of code during the remaining chapters of the book.

First, we will look at data experimentation techniques as a step-by-step process for analyzing common insights, such as missing values, data distribution, feature importance, and two-dimensional embedding techniques to estimate the expected model performance of a classification task. In the second section, we will use these insights about the data to perform data preprocessing and feature engineering, such as normalization, the encoding...

Performing descriptive data exploration

Descriptive data exploration is, without a doubt, one of the most important steps in an ML project. If you want to clean data and build derived features or select an ML algorithm to predict a target variable in your dataset, then you need to understand your data first. Your data will define many of the necessary cleaning and preprocessing steps; it will define which algorithms you can choose and it will ultimately define the performance of your predictive model.

Hence, data exploration should be considered an important analytical step to understanding whether your data is informative to build an ML model in the first place. By analytical step, we mean that the exploration should be done as a structured analytical process rather than a set of experimental tasks. Therefore, we will go through a checklist of data exploration tasks that you can perform as an initial step in every ML project—before starting any data cleaning, preprocessing...

Exploring common techniques for data preparation

After the data experimentation phase, you should have gathered enough knowledge to start preprocessing the data. This process is also often referred to as feature engineering. When coming from multiple sources, such as applications, databases, or warehouses, as well as external sources, your data cannot be analyzed or interpreted immediately.

It is, therefore, of imminent importance to preprocess data before you choose a model to interpret your problem. In addition to this, there are different steps involved in data preparation, which depend on the data that is available to you, such as the problem you want to solve, and with that, the ML algorithms that could be used for it.

You might ask yourself why data preparation is so important. The answer is that the preparation of your data might lead to improvements in model accuracy when done properly. This could be due to the relationships within your data that have been simplified...

Choosing the right ML model to train data

Similar to data experimentation and preprocessing, training ML model is an analytical, step-by-step process. Each step involves a thought process that evaluates the pros and cons of each algorithm according to the results of the experimentation phase. Like in every other scientific process, it is recommended that you come up with a hypothesis first and verify whether this hypothesis is true afterward.

Let's look at the steps that define the process of training an ML model:

  • Define your ML task: First, we need to define the ML task we are facing, which most of the time is defined by the business decision behind your use case. Depending on the amount of labeled data, you can choose between non-supervised, semi-supervised, and supervised learning, as well as many other subcategories.
  • Pick a suitable model to perform this task: Pick a suitable model for the chosen ML task. This includes logistic regression, a gradient-boosted...

Optimization techniques

If we have trained a simple ensemble model that performs reasonably better than the baseline model and achieves acceptable performance according to the expected performance estimated during data preparation, we can progress with optimization. This is a point we really want to emphasize. It's strongly discouraged to begin model optimization and stacking when a simple ensemble technique fails to deliver useful results. If this is the case, it would be much better to take a step back and dive deeper into data analysis and feature engineering.

Common ML optimization techniques, such as hyperparameter optimization, model stacking, and even automated machine learning, help you get the last 10% of performance boost out of your model while the remaining 90% is achieved by a single ensemble model. If you decide to use any of those optimization techniques, it is advised to perform them in parallel and fully automated on a distributed cluster.

After seeing too...

Deploying and operating models

Once you have trained and optimized an ML model, it is ready for deployment. Many data science teams, in practice, stop here and move the model to production as a Docker image, often embedded in a REST API using Flask or similar frameworks. However, as you can imagine, this is not always the best solution depending on your use case requirements. An ML or data engineer's responsibility doesn't stop here.

The deployment and operation of an ML pipeline can be best seen when testing the model on live data in production. A test is done to collect insights and data to continuously improve the model. Hence, collecting model performance over time is an essential step to guaranteeing and improving the performance of the model.

In general, we differentiate two architectures for ML-scoring pipelines, which we will briefly discuss in this section:

  • Batch scoring using pipelines
  • Real-time scoring using a container-based web service
...

Summary

In this chapter, we saw an overview of all the steps involved in making a custom ML pipeline. You might have seen familiar concepts for data preprocessing or analytics and learned an important lesson. Data experimentation is a step-by-step approach rather than an experimental process. Look for missing values, data distribution, and relationships between features and targets. This analysis will greatly help you to understand which preprocessing steps to perform and what model performance to expect.

You now know that data preprocessing, or feature engineering, is the most important part of the whole ML process. The more prior knowledge you have about the data, the better you can encode categorical and temporal variables or transform text to numerical space using NLP techniques. You learned that choosing the proper ML task, model, error metric, and train-test split is mostly defined by business decisions (for example, object detection against segmentation) or a performance...

Left arrow icon Right arrow icon
Download code icon Download Code

Key benefits

  • Make sense of data on the cloud by implementing advanced analytics
  • Train and optimize advanced deep learning models efficiently on Spark using Azure Databricks
  • Deploy machine learning models for batch and real-time scoring with Azure Kubernetes Service (AKS)

Description

The increase being seen in data volume today requires distributed systems, powerful algorithms, and scalable cloud infrastructure to compute insights and train and deploy machine learning (ML) models. This book will help you improve your knowledge of building ML models using Azure and end-to-end ML pipelines on the cloud. The book starts with an overview of an end-to-end ML project and a guide on how to choose the right Azure service for different ML tasks. It then focuses on Azure Machine Learning and takes you through the process of data experimentation, data preparation, and feature engineering using Azure Machine Learning and Python. You'll learn advanced feature extraction techniques using natural language processing (NLP), classical ML techniques, and the secrets of both a great recommendation engine and a performant computer vision model using deep learning methods. You'll also explore how to train, optimize, and tune models using Azure Automated Machine Learning and HyperDrive, and perform distributed training on Azure. Then, you'll learn different deployment and monitoring techniques using Azure Kubernetes Services with Azure Machine Learning, along with the basics of MLOps—DevOps for ML to automate your ML process as CI/CD pipeline. By the end of this book, you'll have mastered Azure Machine Learning and be able to confidently design, build and operate scalable ML pipelines in Azure.

Who is this book for?

This machine learning book is for data professionals, data analysts, data engineers, data scientists, or machine learning developers who want to master scalable cloud-based machine learning architectures in Azure. This book will help you use advanced Azure services to build intelligent machine learning applications. A basic understanding of Python and working knowledge of machine learning are mandatory.

What you will learn

  • Setup your Azure Machine Learning workspace for data experimentation and visualization
  • Perform ETL, data preparation, and feature extraction using Azure best practices
  • Implement advanced feature extraction using NLP and word embeddings
  • Train gradient boosted tree-ensembles, recommendation engines and deep neural networks on Azure Machine Learning
  • Use hyperparameter tuning and Azure Automated Machine Learning to optimize your ML models
  • Employ distributed ML on GPU clusters using Horovod in Azure Machine Learning
  • Deploy, operate and manage your ML models at scale
  • Automated your end-to-end ML process as CI/CD pipelines for MLOps

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Apr 30, 2020
Length: 436 pages
Edition : 1st
Language : English
ISBN-13 : 9781789807554
Vendor :
Microsoft
Category :
Languages :
Tools :

What do you get with a Packt Subscription?

Free for first 7 days. €18.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing

Product Details

Publication date : Apr 30, 2020
Length: 436 pages
Edition : 1st
Language : English
ISBN-13 : 9781789807554
Vendor :
Microsoft
Category :
Languages :
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
€18.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
€189.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts
€264.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total 106.97
Learn Azure Administration
€36.99
Deep Learning with TensorFlow 2 and Keras
€32.99
Mastering Azure Machine Learning
€36.99
Total 106.97 Stars icon
Banner background image

Table of Contents

19 Chapters
Section 1: Azure Machine Learning Chevron down icon Chevron up icon
1. Building an end-to-end machine learning pipeline in Azure Chevron down icon Chevron up icon
2. Choosing a machine learning service in Azure Chevron down icon Chevron up icon
Section 2: Experimentation and Data Preparation Chevron down icon Chevron up icon
3. Data experimentation and visualization using Azure Chevron down icon Chevron up icon
4. ETL, data preparation, and feature extraction Chevron down icon Chevron up icon
5. Azure Machine Learning pipelines Chevron down icon Chevron up icon
6. Advanced feature extraction with NLP Chevron down icon Chevron up icon
Section 3: Training Machine Learning Models Chevron down icon Chevron up icon
7. Building ML models using Azure Machine Learning Chevron down icon Chevron up icon
8. Training deep neural networks on Azure Chevron down icon Chevron up icon
9. Hyperparameter tuning and Automated Machine Learning Chevron down icon Chevron up icon
10. Distributed machine learning on Azure Chevron down icon Chevron up icon
11. Building a recommendation engine in Azure Chevron down icon Chevron up icon
Section 4: Optimization and Deployment of Machine Learning Models Chevron down icon Chevron up icon
12. Deploying and operating machine learning models Chevron down icon Chevron up icon
13. MLOps—DevOps for machine learning Chevron down icon Chevron up icon
14. What's next? Chevron down icon Chevron up icon
Index Chevron down icon Chevron up icon

Customer reviews

Top Reviews
Rating distribution
Full star icon Full star icon Full star icon Full star icon Half star icon 4.3
(6 Ratings)
5 star 83.3%
4 star 0%
3 star 0%
2 star 0%
1 star 16.7%
Filter icon Filter
Top Reviews

Filter reviews by




Jagannath Banerjee Sep 19, 2020
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Mastering Azure Machine Learning - As the name aptly suggests, this book is a highly focused approach to overall life cycle of Machine Learning, Deep Learning(ANN & CNN) , Natural Language Processing (NLP) and Recommender System using Microsoft Azure as a platform. Author did an excellent job in explaining such wide subject into 400 pages with workable codes, picture and enough text that will comfortably help you to take off to your AI journey in Azure.What I really liked is the smooth flow of concepts followed by code. Everything from building a virtual machine, computation, workspace to launching machine-learning landscape is thorough. Author begins with data exploration, data preparation techniques, feature engineering, building models, metrics comparison, optimization and deployment. Author introduces us to 5 major ML landscape provided by Azure platform – Azure ML Designer, AutoML, Azure Machine Learning, Cognitive Toolkit and Databricks.I specially loved chapter 5 where we built ML workflow using pipelines that setups end-to-end process for training, scoring and re-training and chapter 12 which demonstrates ML model deployment in Azure, how to log our results and application metrics. I have read many books on Machine Learning and hardly any book captures the deployment details as nice as this book. The deployments mentioned in the book are industry standard and I was able to use the concepts in my current project.This book is not for absolute beginners in the field. Someone with 1 to 2 years of experience in the AI field with basic understanding of Azure, Python, Machine Learning and Shell Script will benefit the most. This book explains basic concepts theoretically but lacks any mathematics.Overall, it’s a great book to buy!
Amazon Verified review Amazon
K Tung Oct 06, 2020
Full star icon Full star icon Full star icon Full star icon Full star icon 5
This book covers how to build and deploy machine learning models in Microsoft Azure. The main tool or platform for user to follow along this book is Microsoft Azure Machine Learning Service, which is a platform-as-a-service (PaaS) offering by Microsoft. Authors provide guidance and suggestions about creating Azure subscription (with $200 USD credit) and the minimum compute type to work through these examples in the book. So, if your company or you already have Azure subscription, and Azure Machine Learning service is enabled in your subscription, you are all set.Authors provide many useful examples and boiler plate code to demonstrate how to leverage Azure Machine Learning Service as an end-to-end PaaS offering for data scientists and machine learning engineers in both discovery as well as deployment in Azure. Examples are pretty straightforward to follow and execute. Authors also spent enough pages to demonstrate no-code machine learning in building a matchbox recommender. For users who are new to Python (i.e., if you have been working with R or Matlab primarily), you would appreciate the section about no-code approach of building a machine learning model through Azure Machine Learning designer in Chapter 5.This book really did a justice for Azure Machine Learning Service. This book also gives enough coverage to distributed training, data pipeline, as well as model deployment to container registry. I frequently see that there is a divide between those who build models, and those who have to figure out how to serve the model. Each side view the other as a black box. This book helps demystify the gaps. In section 4, where the focus is on model deployment, it demonstrates how to refactor model training code into scoring script and implement it as a pipeline. My suggestion for this section is that it could be more helpful to readers if more of Azure dashboards could be shown, for example, where to look for scoring URL of a model from within Azure portal, and even better, if it could be shown to readers as to how one can use generic tools such as Postman to solicit RESTful API call for model scoring, that would be very helpful.Overall, this book is very helpful in covering and explaining Azure Machine Learning Service as a PaaS offering for end-to-end machine learning workflow. I think whether you are an expert machine learning scientist or a novice data scientist, you will find the examples relevant and applicable. An improvement would be to show more of Azure dashboard, especially when it comes to storing docker images, accessing scoring URL, and management of workspace in a team environment.
Amazon Verified review Amazon
Nirupam Nov 23, 2020
Full star icon Full star icon Full star icon Full star icon Full star icon 5
I got this book a few weeks ago and have been amazed by both the depth and breadth of content present in the book. Some of the features I liked are:1. Book goes through different basics of services provided by Azure for data scientists and ML engineers.2. There are many chapters that cover each step of building machine learning models through Azure services for example data visualization, collection, feature engineering, pre-built APIs, ETL, modeling and deployment.3. To explain each topic, the author has given clear python code with instructions so that readers can not only replicate but also apply the code to their own work.4. Author has provided chapters on using advanced frameworks for computer vision and NLP which makes this book my goto book for everything related to ML on azure.5. My favourite topic is model deployment and MLDevOps which explain in detail how to maintain and serve the models.Close your eyes and buy this book blindly and you thank the author and reviewers for recommending this book
Amazon Verified review Amazon
Si Jie Apr 29, 2021
Full star icon Full star icon Full star icon Full star icon Full star icon 5
I'm captivated by this book. Just went through the first chapter and this is exactly what I need. Besides the Azure part, it is a pretty well-rounded ML book itself.
Amazon Verified review Amazon
Amazon Customer Nov 13, 2020
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Very Nice work. Enjoyed reading the details. Very hands on book with practical examples. Would serve as helpful resource for ML workforce who uses Azure cloud.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

What is included in a Packt subscription? Chevron down icon Chevron up icon

A subscription provides you with full access to view all Packt and licnesed content online, this includes exclusive access to Early Access titles. Depending on the tier chosen you can also earn credits and discounts to use for owning content

How can I cancel my subscription? Chevron down icon Chevron up icon

To cancel your subscription with us simply go to the account page - found in the top right of the page or at https://subscription.packtpub.com/my-account/subscription - From here you will see the ‘cancel subscription’ button in the grey box with your subscription information in.

What are credits? Chevron down icon Chevron up icon

Credits can be earned from reading 40 section of any title within the payment cycle - a month starting from the day of subscription payment. You also earn a Credit every month if you subscribe to our annual or 18 month plans. Credits can be used to buy books DRM free, the same way that you would pay for a book. Your credits can be found in the subscription homepage - subscription.packtpub.com - clicking on ‘the my’ library dropdown and selecting ‘credits’.

What happens if an Early Access Course is cancelled? Chevron down icon Chevron up icon

Projects are rarely cancelled, but sometimes it's unavoidable. If an Early Access course is cancelled or excessively delayed, you can exchange your purchase for another course. For further details, please contact us here.

Where can I send feedback about an Early Access title? Chevron down icon Chevron up icon

If you have any feedback about the product you're reading, or Early Access in general, then please fill out a contact form here and we'll make sure the feedback gets to the right team. 

Can I download the code files for Early Access titles? Chevron down icon Chevron up icon

We try to ensure that all books in Early Access have code available to use, download, and fork on GitHub. This helps us be more agile in the development of the book, and helps keep the often changing code base of new versions and new technologies as up to date as possible. Unfortunately, however, there will be rare cases when it is not possible for us to have downloadable code samples available until publication.

When we publish the book, the code files will also be available to download from the Packt website.

How accurate is the publication date? Chevron down icon Chevron up icon

The publication date is as accurate as we can be at any point in the project. Unfortunately, delays can happen. Often those delays are out of our control, such as changes to the technology code base or delays in the tech release. We do our best to give you an accurate estimate of the publication date at any given time, and as more chapters are delivered, the more accurate the delivery date will become.

How will I know when new chapters are ready? Chevron down icon Chevron up icon

We'll let you know every time there has been an update to a course that you've bought in Early Access. You'll get an email to let you know there has been a new chapter, or a change to a previous chapter. The new chapters are automatically added to your account, so you can also check back there any time you're ready and download or read them online.

I am a Packt subscriber, do I get Early Access? Chevron down icon Chevron up icon

Yes, all Early Access content is fully available through your subscription. You will need to have a paid for or active trial subscription in order to access all titles.

How is Early Access delivered? Chevron down icon Chevron up icon

Early Access is currently only available as a PDF or through our online reader. As we make changes or add new chapters, the files in your Packt account will be updated so you can download them again or view them online immediately.

How do I buy Early Access content? Chevron down icon Chevron up icon

Early Access is a way of us getting our content to you quicker, but the method of buying the Early Access course is still the same. Just find the course you want to buy, go through the check-out steps, and you’ll get a confirmation email from us with information and a link to the relevant Early Access courses.

What is Early Access? Chevron down icon Chevron up icon

Keeping up to date with the latest technology is difficult; new versions, new frameworks, new techniques. This feature gives you a head-start to our content, as it's being created. With Early Access you'll receive each chapter as it's written, and get regular updates throughout the product's development, as well as the final course as soon as it's ready.We created Early Access as a means of giving you the information you need, as soon as it's available. As we go through the process of developing a course, 99% of it can be ready but we can't publish until that last 1% falls in to place. Early Access helps to unlock the potential of our content early, to help you start your learning when you need it most. You not only get access to every chapter as it's delivered, edited, and updated, but you'll also get the finalized, DRM-free product to download in any format you want when it's published. As a member of Packt, you'll also be eligible for our exclusive offers, including a free course every day, and discounts on new and popular titles.