Search code examples
pythonmachine-learningazure-machine-learning-service

Azure machine learning failing on sample for training


I am trying to run below sample code in my notebook, Running on python 3.6 kernel. https://learn.microsoft.com/en-us/azure/machine-learning/tutorial-train-models-with-aml Download the MNIST dataset

The following code failed with the attribute error, on line of the following code from azureml.opendatasets import MNIST

from azureml.core import Dataset
from azureml.opendatasets import MNIST


Solution

  • Prerequisites: The tutorial and accompanying utils.py file is also available on GitHub if you wish to use it on your own local environment. Run pip install azureml-sdk[notebooks] azureml-opendatasets matplotlib to install dependencies for this tutorial.

    If you are using older version then upgrade to the latest Azure ML SDK Version 1.0.85.

    !pip install --upgrade azureml-sdk

    # check core SDK version number
    print("Azure ML SDK Version: ", azureml.core.VERSION)
    

    Also

    !pip install --upgrade azureml-opendataset