Repository with instructions, notebooks and data files for automated ML worshop.
- Azure subscription. Preferably use your existing organization/personal subscription. If needed, you can get a free trial subscription with some credit here
In this workshop, you will go over the following steps:
- Set up Azure Notebooks project to do the workshop
- Configure your Azure Machine Learning service workspace so it is ready for automated ML training
- Run the Energy demand forecasting notebook, including:
- Read the data and prepare it for training (split to train/validation/test)
- Configure and run automated ML training job to get the best model
- Analyze and test the results
- Deploy the model to Azure Container Instance (ACI)
This scenario focuses on energy demand forecasting where the goal is to predict the future load on an energy grid. It is a critical business operation for companies in the energy sector as operators need to maintain the fine balance between the energy consumed on a grid and the energy supplied to it.
- Go to https://notebooks.azure.com/
- Click "Sign in" on the top right corner
- Use your Azure subscription credentials to log in
- From Azure Notebooks home page, click "My projects"
- Select "Upload GitHub repo"
- In the "Upload GitHub Repository" window, enter the the following GitHub repository: https://github.com/tsikiksr/automl-workshop
- The rest of the fields will be automatically populated, leave them be
- Make sure "Public" is checked
- Click "Import" and wait for the clone process to complete (can take a few minutes)
- Click "Run on Free Compute" to start the Jupyter server
The configuration notebook will create and prepare an Azure Machine Learning service workspace. You only need to run it once to create the workspace, which can then be used for multiple experiments, model training, and deployments.
- From the Jupyter file list, select the "configuration.ipynb" notebook to open it
- If prompted for kernel, select "Python 3.6" and click "Set Kernel"
- Proceed to the first code cell and hit "Run", you should see that the SDK version is at least the version that is expected
- Proceed to the next code cell, to enter your subscription id in the appropriate palce (
- Go to the next cell and run it, you should be prompted to open a login window, then do the following:
- Copy the 9 character code in the output
- click the link to open the login window (https://microsoft.com/devicelogin)
- In the login window, paste the 9 character code and hit "Accept" when prompted to.
- Go back to the notebook and wait for the authentication to finish.
- You should get the message: "Workspace not accessible. Change your parameters or create a new workspace below". That is ok, it means that the workspace was not found, so you can process to the next code cell.
- Run the cell to create the new workspace (might take a few minutes to complete)
- Once completed successfully, verify that the workspace was actually created by going to https://portal.azure.com/ and search for "my-automl-workshop-ws" in the search box. selecting the workspace will open it, and you'll be able to view the workspace. This is your Azure Machine Leanring service workspace, which include all of the resources you'll need for training and deploying ML models.
- this cell will also persist the worksapce details into a config file, so it is easily retrieved for future use.
- Run the next cell to verify the configuration and the config file and wait for the output. verify the configuration.
- Run the next cells one by one (wait for each one to complete) to install the additional dependencies
Well done! You have completed the configuration notebook, and you are now ready to move on to the energy demand forecasting notebook.
- Go over the "auto-ml-forecasting-energy-demand-end2end.ipynb" notebook (until "Deploy" section), cell by cell. Each cell has the details of its content, wait for each one to complete before starting the next cell.
- go over the "Deploy" section of the notebook. wait for each step to complete, image creation and service deployment takes several minutes to complete.
Congrats! You have completed the workshop successfully!
Ask questions, send feedback: AskAutomatedML@microsoft.com