ערוך

שתף באמצעות


Example pipelines & datasets for Azure Machine Learning designer

Use the built-in examples in Azure Machine Learning designer to quickly get started building your own machine learning pipelines. The Azure Machine Learning designer GitHub repository contains detailed documentation to help you understand some common machine learning scenarios.

Prerequisites

  • An Azure subscription. If you don't have an Azure subscription, create a free account
  • An Azure Machine Learning workspace

Important

If you do not see graphical elements mentioned in this document, such as buttons in studio or designer, you may not have the right level of permissions to the workspace. Please contact your Azure subscription administrator to verify that you have been granted the correct level of access. For more information, see Manage users and roles.

Use sample pipelines

The designer saves a copy of the sample pipelines to your studio workspace. You can edit the pipeline to adapt it to your needs and save it as your own. Use them as a starting point to jumpstart your projects.

Here's how to use a designer sample:

  1. Sign in to ml.azure.com, and select the workspace you want to work with.

  2. Select Designer.

  3. Select a sample pipeline under the New pipeline section.

    Select Show more samples for a complete list of samples.

  4. To run a pipeline, you first have to set default compute target to run the pipeline on.

    1. In the Settings pane to the right of the canvas, select Select compute target.

    2. In the dialog that appears, select an existing compute target or create a new one. Select Save.

    3. Select Submit at the top of the canvas to submit a pipeline job.

    Depending on the sample pipeline and compute settings, jobs may take some time to complete. The default compute settings have a minimum node size of 0, which means that the designer must allocate resources after being idle. Repeated pipeline jobs will take less time since the compute resources are already allocated. Additionally, the designer uses cached results for each component to further improve efficiency.

  5. After the pipeline finishes running, you can review the pipeline and view the output for each component to learn more. Use the following steps to view component outputs:

    1. Right-click the component in the canvas whose output you'd like to see.
    2. Select Visualize.

    Use the samples as starting points for some of the most common machine learning scenarios.

Regression

Explore these built-in regression samples.

Sample title Description
Regression - Automobile Price Prediction (Basic) Predict car prices using linear regression.
Regression - Automobile Price Prediction (Advanced) Predict car prices using decision forest and boosted decision tree regressors. Compare models to find the best algorithm.

Classification

Explore these built-in classification samples. You can learn more about the samples by opening the samples and viewing the component comments in the designer.

Sample title Description
Binary Classification with Feature Selection - Income Prediction Predict income as high or low, using a two-class boosted decision tree. Use Pearson correlation to select features.
Binary Classification with custom Python script - Credit Risk Prediction Classify credit applications as high or low risk. Use the Execute Python Script component to weight your data.
Binary Classification - Customer Relationship Prediction Predict customer churn using two-class boosted decision trees. Use SMOTE to sample biased data.
Text Classification - Wikipedia SP 500 Dataset Classify company types from Wikipedia articles with multiclass logistic regression.
Multiclass Classification - Letter Recognition Create an ensemble of binary classifiers to classify written letters.

Computer vision

Explore these built-in computer vision samples. You can learn more about the samples by opening the samples and viewing the component comments in the designer.

Sample title Description
Image Classification using DenseNet Use computer vision components to build image classification model based on PyTorch DenseNet.

Recommender

Explore these built-in recommender samples. You can learn more about the samples by opening the samples and viewing the component comments in the designer.

Sample title Description
Wide & Deep based Recommendation - Restaurant Rating Prediction Build a restaurant recommender engine from restaurant/user features and ratings.
Recommendation - Movie Rating Tweets Build a movie recommender engine from movie/user features and ratings.

Utility

Learn more about the samples that demonstrate machine learning utilities and features. You can learn more about the samples by opening the samples and viewing the component comments in the designer.

Sample title Description
Binary Classification using Vowpal Wabbit Model - Adult Income Prediction Vowpal Wabbit is a machine learning system which pushes the frontier of machine learning with techniques such as online, hashing, allreduce, reductions, learning2search, active, and interactive learning. This sample shows how to use Vowpal Wabbit model to build binary classification model.
Use custom R script - Flight Delay Prediction Use customized R script to predict if a scheduled passenger flight will be delayed by more than 15 minutes.
Cross Validation for Binary Classification - Adult Income Prediction Use cross validation to build a binary classifier for adult income.
Permutation Feature Importance Use permutation feature importance to compute importance scores for the test dataset.
Tune Parameters for Binary Classification - Adult Income Prediction Use Tune Model Hyperparameters to find optimal hyperparameters to build a binary classifier.

Datasets

When you create a new pipeline in Azure Machine Learning designer, a number of sample datasets are included by default. These sample datasets are used by the sample pipelines in the designer homepage.

The sample datasets are available under Datasets-Samples category. You can find this in the component palette to the left of the canvas in the designer. You can use any of these datasets in your own pipeline by dragging it to the canvas.

Dataset name     Dataset description
Adult Census Income Binary Classification dataset A subset of the 1994 Census database, using working adults over the age of 16 with an adjusted income index of > 100.
Usage: Classify people using demographics to predict whether a person earns over 50K a year.
Related Research: Kohavi, R., Becker, B., (1996). UCI Machine Learning Repository. Irvine, CA: University of California, School of Information and Computer Science
Automobile price data (Raw) Information about automobiles by make and model, including the price, features such as the number of cylinders and MPG, as well as an insurance risk score.
The risk score is initially associated with auto price. It is then adjusted for actual risk in a process known to actuaries as symboling. A value of +3 indicates that the auto is risky, and a value of -3 that it is probably safe.
Usage: Predict the risk score by features, using regression or multivariate classification.
Related Research: Schlimmer, J.C. (1987). UCI Machine Learning Repository. Irvine, CA: University of California, School of Information and Computer Science.
CRM Appetency Labels Shared Labels from the KDD Cup 2009 customer relationship prediction challenge (orange_small_train_appetency.labels).
CRM Churn Labels Shared Labels from the KDD Cup 2009 customer relationship prediction challenge (orange_small_train_churn.labels).
CRM Dataset Shared This data comes from the KDD Cup 2009 customer relationship prediction challenge (orange_small_train.data.zip).
The dataset contains 50K customers from the French Telecom company Orange. Each customer has 230 anonymized features, 190 of which are numeric and 40 are categorical. The features are very sparse.
CRM Upselling Labels Shared Labels from the KDD Cup 2009 customer relationship prediction challenge (orange_large_train_upselling.labels
Flight Delays Data Passenger flight on-time performance data taken from the TranStats data collection of the U.S. Department of Transportation (On-Time).
The dataset covers the time period April-October 2013. Before uploading to the designer, the dataset was processed as follows:
- The dataset was filtered to cover only the 70 busiest airports in the continental US
- Canceled flights were labeled as delayed by more than 15 minutes
- Diverted flights were filtered out
- The following columns were selected: Year, Month, DayofMonth, DayOfWeek, Carrier, OriginAirportID, DestAirportID, CRSDepTime, DepDelay, DepDel15, CRSArrTime, ArrDelay, ArrDel15, Canceled
German Credit Card UCI dataset The UCI Statlog (German Credit Card) dataset (Statlog+German+Credit+Data), using the german.data file.
The dataset classifies people, described by a set of attributes, as low or high credit risks. Each example represents a person. There are 20 features, both numerical and categorical, and a binary label (the credit risk value). High credit risk entries have label = 2, low credit risk entries have label = 1. The cost of misclassifying a low risk example as high is 1, whereas the cost of misclassifying a high risk example as low is 5.
IMDB Movie Titles The dataset contains information about movies that were rated in X tweets: IMDB movie ID, movie name, genre, and production year. There are 17K movies in the dataset. The dataset was introduced in the paper "S. Dooms, T. De Pessemier and L. Martens. MovieTweetings: a Movie Rating Dataset Collected From Twitter. Workshop on Crowdsourcing and Human Computation for Recommender Systems, CrowdRec at RecSys 2013."
Movie Ratings The dataset is an extended version of the Movie Tweetings dataset. The dataset has 170K ratings for movies, extracted from well-structured tweets on X. Each instance represents a tweet and is a tuple: user ID, IMDB movie ID, rating, timestamp, number of favorites for this tweet, and number of retweets of this tweet. The dataset was made available by A. Said, S. Dooms, B. Loni and D. Tikk for Recommender Systems Challenge 2014.
Weather Dataset Hourly land-based weather observations from NOAA (merged data from 201304 to 201310).
The weather data covers observations made from airport weather stations, covering the time period April-October 2013. Before uploading to the designer, the dataset was processed as follows:
- Weather station IDs were mapped to corresponding airport IDs
- Weather stations not associated with the 70 busiest airports were filtered out
- The Date column was split into separate Year, Month, and Day columns
- The following columns were selected: AirportID, Year, Month, Day, Time, TimeZone, SkyCondition, Visibility, WeatherType, DryBulbFarenheit, DryBulbCelsius, WetBulbFarenheit, WetBulbCelsius, DewPointFarenheit, DewPointCelsius, RelativeHumidity, WindSpeed, WindDirection, ValueForWindCharacter, StationPressure, PressureTendency, PressureChange, SeaLevelPressure, RecordType, HourlyPrecip, Altimeter
Wikipedia SP 500 Dataset Data is derived from Wikipedia (https://www.wikipedia.org/) based on articles of each S&P 500 company, stored as XML data.
Before uploading to the designer, the dataset was processed as follows:
- Extract text content for each specific company
- Remove wiki formatting
- Remove non-alphanumeric characters
- Convert all text to lowercase
- Known company categories were added
Note that for some companies an article could not be found, so the number of records is less than 500.
Restaurant Feature Data A set of metadata about restaurants and their features, such as food type, dining style, and location.
Usage: Use this dataset, in combination with the other two restaurant datasets, to train and test a recommender system.
Related Research: Bache, K. and Lichman, M. (2013). UCI Machine Learning Repository. Irvine, CA: University of California, School of Information and Computer Science.
Restaurant Ratings Contains ratings given by users to restaurants on a scale from 0 to 2.
Usage: Use this dataset, in combination with the other two restaurant datasets, to train and test a recommender system.
Related Research: Bache, K. and Lichman, M. (2013). UCI Machine Learning Repository. Irvine, CA: University of California, School of Information and Computer Science.
Restaurant Customer Data A set of metadata about customers, including demographics and preferences.
Usage: Use this dataset, in combination with the other two restaurant datasets, to train and test a recommender system.
Related Research: Bache, K. and Lichman, M. (2013). UCI Machine Learning Repository Irvine, CA: University of California, School of Information and Computer Science.

Clean up resources

Important

You can use the resources that you created as prerequisites for other Azure Machine Learning tutorials and how-to articles.

Delete everything

If you don't plan to use anything that you created, delete the entire resource group so you don't incur any charges.

  1. In the Azure portal, select Resource groups on the left side of the window.

    Delete resource group in the Azure portal

  2. In the list, select the resource group that you created.

  3. Select Delete resource group.

Deleting the resource group also deletes all resources that you created in the designer.

Delete individual assets

In the designer where you created your experiment, delete individual assets by selecting them and then selecting the Delete button.

The compute target that you created here automatically autoscales to zero nodes when it's not being used. This action is taken to minimize charges. If you want to delete the compute target, take these steps:

Delete assets

You can unregister datasets from your workspace by selecting each dataset and selecting Unregister.

Unregister dataset

To delete a dataset, go to the storage account by using the Azure portal or Azure Storage Explorer and manually delete those assets.

Next steps

Learn the fundamentals of predictive analytics and machine learning with Tutorial: Predict automobile price with the designer