Machine learning is at the core of artificial intelligence, and many modern applications and services depend on predictive machine learning models. Learn how to use Azure Machine Learning to create and publish models without writing code.
This learning path helps prepare you for Exam DP-100: Designing and Implementing a Data Science Solution on Azure, Exam AI-900: Microsoft Azure AI Fundamentals.
Machine Learning is the foundation for most artificial intelligence solutions. Creating an intelligent solution often begins with the use of machine learning to train predictive models using historic data that you have collected. It is a cloud service that you can use to train and manage machine learning models.
In this module, you’ll learn to:
a). Identify the machine learning process.
b). Understand Azure Machine Learning capabilities.
c). Use automated machine learning in Azure Machine Learning studio to train and deploy a predictive model.
2. What is machine learning?
Machine learning is a technique that uses mathematics and statistics to create a model that can predict unknown values.
Types of machine learning
There are two general approaches to machine learning, supervised and unsupervised machine learning. In both approaches, you train a model to make predictions.
The supervised machine learning approach requires you to start with a dataset with known label values. Two types of supervised machine learning tasks include regression and classification.
a). Regression: used to predict a continuous value; like a price, a sales total, or some other measure.
b). Classification: used to determine a binary class label; like whether a patient has diabetes or not.
The unsupervised machine learning approach starts with a dataset without known label values. One type of unsupervised machine learning task is clustering.
a). Clustering: used to determine labels by grouping similar information into label groups; like grouping measurements from birds into species.
3. What is Azure Machine Learning studio?
Training and deploying an effective machine learning model involves a lot of work, much of it time-consuming and resource-intensive. Azure Machine Learning is a cloud-based service that helps simplify some of the tasks it takes to prepare data, train a model, and deploy a predictive service.
Most importantly, Azure Machine Learning helps data scientists increase their efficiency by automating many of the time-consuming tasks associated with training models; and it enables them to use cloud-based compute resources that scale effectively to handle large volumes of data while incurring costs only when actually used.
a). Azure Machine Learning workspace
b). Azure Machine Learning studio
c). Azure Machine Learning compute
At its core, Azure Machine Learning is a service for training and managing machine learning models, for which you need compute on which to run the training process.
Compute targets are cloud-based resources on which you can run model training and data exploration processes.
In Azure Machine Learning studio, you can manage the compute targets for your data science activities. There are four kinds of compute resource you can create:
a). Compute Instances: Development workstations that data scientists can use to work with data and models.
b). Compute Clusters: Scalable clusters of virtual machines for on-demand processing of experiment code.
c). Inference Clusters: Deployment targets for predictive services that use your trained models.
d). Attached Compute: Links to existing Azure compute resources, such as Virtual Machines or Azure Databricks clusters.
4. What is Azure automated machine learning?
Azure Machine Learning includes an automated machine learning capability that automatically tries multiple pre-processing techniques and model-training algorithms in parallel. These automated capabilities use the power of cloud compute to find the best performing supervised machine learning model for your data.
Automated machine learning allows you to train models without extensive data science or programming knowledge. For people with a data science and programming background, it provides a way to save time and resources by automating algorithm selection and hyperparameter tuning.
You can create an automated machine learning job in Azure Machine Learning studio.
5. Understand the AutoML process
You can think of the steps in a machine learning process as:
- Prepare data: Identify the features and label in a dataset. Pre-process, or clean and transform, the data as needed.
- Train model: Split the data into two groups, a training and a validation set. Train a machine learning model using the training data set. Test the machine learning model for performance using the validation data set.
- Evaluate performance: Compare how close the model’s predictions are to the known labels.
- Deploy a predictive service: After you train a machine learning model, you can deploy the model as an application on a server or device so that others can use it.
These are the same steps in the automated machine learning process with Azure Machine Learning.
Prepare data :
Data scientists expend a lot of effort exploring and pre-processing data, and trying various types of model-training algorithms to produce accurate models, which is time consuming, and often makes inefficient use of expensive compute hardware.
In Azure Machine Learning, data for model training and other operations is usually encapsulated in an object called a dataset. You can create your own dataset in Azure Machine Learning studio.
6. Evaluate performance
After the job has finished you can review the best performing model. In this case, you used exit criteria to stop the job. Thus the “best” model the job generated might not be the best possible model, just the best one found within the time allowed for this exercise.
The best model is identified based on the evaluation metric you specified, Normalized root mean squared error.
A technique called cross-validation is used to calculate the evaluation metric. After the model is trained using a portion of the data, the remaining portion is used to iteratively test, or cross-validate, the trained model. The metric is calculated by comparing the predicted value from the test with the actual known value, or label.The difference between the predicted and actual value, known as the residuals, indicates the amount of error in the model. The performance metric root mean squared error (RMSE), is calculated by squaring the errors across all of the test cases, finding the mean of these squares, and then taking the square root. What all of this means is that smaller this value is, the more accurate the model’s predictions.
The Residual Histogram shows the frequency of residual value ranges. You should hope to see the most frequently occurring residual values Clustered around zero. You want small errors with fewer errors at the extreme ends of the scale.
7. Deploy a Predictive service
In Azure Machine Learning, you can deploy a service as an Azure Container Instances (ACI) or to an Azure Kubernetes Service (AKS) cluster. For production scenarios, an AKS Deployment is recommended, for which you must create an Inference cluster compute target. In this exercise, you’ll use an ACI service, which is a suitable Deployment target for testing, and does not require you to create an Inference cluster.
For more inputs on Microsoft Azure AI Fundamentals you can connect here.
Contact the L&D Specialist at Locus IT.
There are no reviews yet.