Prerequisites
#
Azure subscription accountIn order to successfully complete this workshop you'll need Azure credits. The instructor will provide you with your account access code. You'll need to complete the azure pass redemption process for setting up your account before you can start the steps below.
#
Setup your cloud resourcesWe'll be using Azure Cloud Shell to create your Azure Machine Learning workspace; as well as run the jobs to train and register your model. And finally, create the Responsible AI dashboard that you'll be using in this workshop.
To start, log into the Azure portal with your account subscription.
Click on the "Subscriptions" icon, to access your subscription ID.
- On the "Subscriptions" page, copy the "subscription Id" and store it to use later.
- Select the "Azure Cloud Shell" icon.
- A command terminal will open at the bottom of the page. Select the "Bash" option.
- A Cloud Shell needs to create a storage account and mount a file system for you. Under the "Subscription" drop-down menu, select your subscription. Then, click on the "Create storage" button.
- This should open a Cloud Shell command line terminal.
- In Azure Cloud Shell command prompt, clone the Diabetes Hospital Readmission project github repository by copying and pasting the command below:
git clone https://github.com/ruyakubu/RAI-Diabetes-Hospital-Readmission-classification.git
- Change to the project directory
cd RAI-Diabetes-Hospital-Readmission-classification
#
Azure Login- At the terminal command prompt, enter the following Azure CLI command to log into your Azure account.
az login --use-device-code
Then, open the link provided and enter the access code from the Cloud Shell message.
This will open a new browser window. Enter the access code and click on the "Next" button.
Pick the account you used to setup the Azure subscription which shows the name and email your used. Then, click on the "Continue" button to sign into the Microsoft Azure CLI. After you have successfully signed in, closed the browser window tab. Return back to the Azure portal tab.
Once you have successfully logged in, set your account to your subscription. Use the subscription Id that you copied earlier.
az account set -s <enter-your-subscription-id-here>
#
Create Resource Group and Azure ML workspace- Create an Azure resource group. For location, enter westus, westus2, eastus or westeurope.
az group create --name <resource-group-name> --location <location>
- Create an Azure Machine Learning workspace using the resource group name you created.
az ml workspace create -n <workspace-name> -g <resource-group-name>
- Set your environment default to the resource group and Azure ML workspace.
az configure --defaults group="<resource-group-name>" workspace="<workspace-name>"
#
Run jobs for training the model and creating the RAI dashboard- To expedite the steps needed to provision the Azure Machine Learning resources for this workshop, run the setup bash script below to create the following:
- train and test datasets
- compute instance
- training job pipeline
- model registration
- RAI dashboard pipeline
bash cloud/setup.sh
To monitor the pipeline job for creating the RAI dashboard, log into Azure Machine Learning studio.
Click on your Azure ML workspace name. Then, click on the Pipelines tab to get the job status.
- To view the progression of the pipeline job creating the RAI dashboard, click on the job "Display name".
Click on the Models tab on the left-hand navigation. Then click on the name of the model to open the details page.
Lastly, click on the "Responsible AI" tab to view the RAI dashboard. Then, click on the "Name" to view the dashboard.
- Terrific...you're ready to start using the dashboard!
- Click on the "Next" button below to proceed to the Error Analysis lab.