Getting Started With☁️Azure Automated Machine Learning🚀

Introduction

 
Generally, a machine learning workflow should be a process of data preparation, modeling, and evaluation to meet future solutions. For that, we need to invest a lot of work, significant domain knowledge, and much time. Being a data scientist, it will be a convenient workflow, but what about beginners and developers? Here Azure automated ML comes in to provide an effective and efficient feature to make ML modeling and evaluation easier.
 
The Azure automated ML can automatically work on ML tasks (Preprocessing, Modeling, and evaluation) by Azure ML SDK to provides Leaderboard that includes all the high scale models that are arranged based on its score, which comes from different predefined algorithms.
 

Benefits of Azure automated ML

  • Reduce cost and time.
  • It does not require programming knowledge in automated ML.
  • It is convenient for Developers, Analysts, and Data scientists to make quick solutions for their problems.
  • Provide a structured and flexible workflow by dominating Agile.
  • Automatic model evaluation.

Azure automated ML Workflow

  1. Understand the ML problem.
  2. Prepare data sources.
  3. Configure the target metrics.
  4. Configure compute.
  5. Configure train and modeling parameters.
  6. Evaluate algorithms.
Prerequisites
  • Active Azure subscription.
  • Knowing ML workflow 
Let’s get started.
 
Here are the tasks that we are going to do,
  • Exploring Microsoft Azure ML studio (preview)
  • Create a new automated ML experiment
  • Create a compute device for Training
  • Configure and Run automated ML experiment
  • Understanding the evaluated model
Step 1 - Create a resource
 
Click on create a Resource under the Azure services >> AI + Machine Learning >> Machine Learning .
  • Workspace name: Type a new workspace name (eg: Azure_auto_ML)
  • Subscription: Choose your active subscription
  • Resource Group: Choose your existing Resource group or Create New one
  • Location: Choose server location which is nearest you
  • Workspace edition: Enterprise
After finishing your resource credentials just click on review + Create >> Review >> Create .
 
Azure Automated Machine Learning
 
Step 2 - Explore Microsoft Azure automated ML studio
 
After creating an ML resource you will have a deployment complete screen, Click on Go to the resource .
 
In our ML resource, click on Launch now to explore Azure ML studio. The detailed instruction is given below with an image.
 
Azure Automated Machine Learning
 
Let’s, take a quick overview of Microsoft Azure ML Studio (preview).
  • Author Pane - It includes three types of ML tools to make ML workflow easier and powerful.
  • Assets - Contains all your datasets, experiments, pipelines, and models as well as deployed sources.
  • Manage - It manages our compute devices, datastores, and Data labeling.
Click on Automated ML under the author to start the demo.
 
Azure Automated Machine Learning
 
Step 3 - Create a new automated ML
 
Under the author >> Automated ML >> New automated ML run 
 
Azure Automated Machine Learning
 
For creating a new automated ML run, we need to handle some configurations. Given below
  1. Select dataset
  2. Configure run
  3. Task type and settings
Now upload/create a dataset for data preparations.
 
Here, I will use the Iris dataset, which is located at my local system.
  • Select dataset >> Create dataset >> From local files.
After clicking on from the local file, you will navigate to the Create dataset pane where we can construct our dataset, which includes Basic info, setting, and preview, schema, and confirm details.
 
Step 4 - Create/Select dataset
 
Let’s construct our dataset,
 
Basic info
 
Browse >> navigate your dataset folder and file >> Open
  • Name: Your dataset name
  • Description: write something about your dataset
Click Next .
 
Setting and preview - you can handle your dataset settings and preview >> Click Next
 
Schema - Enable schema level configuration at your convenience (Recemented: make default).
 
Verify details - after completing our configuration once we can verify all the details by its.
 
Click on create .
 
After all working fine, you will get a success message like “ Your Dataset created successfully ”.
 
Azure Automated Machine Learning
 
Step 5 - Configure Run
 
Let us move on Configure run task,
 
Select dataset >> Next
  • Experiment Name: Type your experiment name.
  • Target column: Select which column you want to predict.
  • Select training computes target: choose your existing compute for training or create a new one.
For creating a new compute, follow the instructions given below,
 
Click on “ Create a new compute ” it will navigate you to the “New training cluster” screen where you need to configure your computing device. Given below
  • Compute Name: name of your compute
  • Virtual machine size: By default, you can choose Standard_DS12_v2 which includes basic configuration of computing.
  • Virtual Machine priority: dedicated
  • Minimum number of Nods: 0
  • Maximum number of Nodes: 6
  • Idle seconds before scale down: 120
Click on Create.
 
Now, you can see your newly created Compute under  Manage.
 
Go to Compute >> Training cluster >> Compute1
 
Azure Automated Machine Learning
 
Select your compute >> Next
 
Azure Automated Machine Learning
 
Step 6 - Task type and settings
 
There are three types of tasks available, you can choose either one of them based on your solution.
 
For our demo, I am choosing a classification task that will provide us an answer as either True or False.
 
Click on Finish. 
 
Azure Automated Machine Learning
 
After clicking on the Finish button, you will navigate on the Run Detail screen.
 
It will take some time around 15 to 30mts for Modeling and evaluation.
 
Azure Automated Machine Learning
 
Step 7 - Explore our Running experiment
 
After your experiment is preparing to finish, click on Experiment >> Your resource >> Run1. In the run screen, we have the number of tabs, that help us to understand what actually went in the background while running the Azure automated ML such as Details, Models, data guardrails, Properties, Logs, and Output. Give below
  • Details : you can get the recemented model and run summary.
  • Models : we can see what models have been evaluated.
  • Data guardrails : This contains information about what tasks have been completed behind the ML automation.
  • Properties : we can see our experiment properties.
  • Logs : we can get our experiment Logs
  • Output : This provides us our experiment output as a JSON format. 
Azure Automated Machine Learning
 
Azure Automated Machine Learning
 
Finally, we got our required information from all of the above accomplishments. Given below
  • The recommended Model is VotingEncemble which only provides 99% accuracy.
  • Each iteration of the trained model was validated through cross-validation.
  • The class is balanced in the training data.
  • There were no missing values found in the training data.

Conclusion

 
In this article, we have learned what is Azure automated ML and Benefits. Moreover, we get started with a simple demo. I hope this article will help you if you feel any query, feel free to ask in the comment section.
 
References
  • https://docs.microsoft.com/en-us/azure/machine-learning
  • https://www.c-sharpcorner.com/article/what-is-data-visualization-in-machine-learning-and-how-does-it-work/


Similar Articles