Global AI Workshops
  • Welcome
  • Getting started
    • Lab 1 - Get Azure Access
    • Lab 2 - Setup Dev Environment
  • The Azure Function that can see
    • Introduction
    • Lab 1 - Train your model
    • Lab 2 - Create the Function
    • Clean up
  • Cognitive Services
    • Lab 1 - Cognitive Search
    • Lab 2 - Bot Composer
  • Azure machine learning
    • Introduction
    • Lab 1 - AML Workspace Setup
    • Lab 2 - Data
    • Lab 3 - Train your model
    • Lab 4 - Deploy to an ACI
      • Lab 4.2 - Deploy to ACI using the Azure Portal
      • Lab 4.1 - Deploy to ACI using Python
    • Lab 5 - Deploy to Managed Endpoint
    • Clean Up
Powered by GitBook
On this page
  • Download the dataset
  • Create a dataset in your Azure Machine Learning workspace
  • Checklist

Was this helpful?

  1. Azure machine learning

Lab 2 - Data

Download the dataset

# Create a directory
mkdir data
cd data

# Download the data and validation set
wget https://github.com/hnky/dataset-lego-figures/raw/master/_download/train-and-validate.zip

# Unzip the dataset 
unzip train-and-validate.zip

# remove the zip file
rm train-and-validate.zip

# Go back to the root of your project
cd ..

Create a dataset in your Azure Machine Learning workspace

code data.yml

Add this content to the file

$schema: https://azuremlschemas.azureedge.net/latest/dataset.schema.json
name: LegoSimpsons
version: 1
datastore: azureml:workspaceblobstore
local_path: ./data

Now run the CLI command to upload the data to your default datastore and create the dataset

az ml data create -f data.yml

To see if the dataset is created you can list all the datasets in your workspace with the command below.

az ml data list --output table

Checklist

Now you have versioned dataset of Simpson Images in your Azure Machine Learning Workspace

PreviousLab 1 - AML Workspace SetupNextLab 3 - Train your model

Last updated 3 years ago

Was this helpful?