Introducing Azure Machine Learning Pipelines

Introducing Azure Machine Learning Pipelines

In Azure Machine Learning, you define a sequence of data transformation and machine learning tasks as a pipeline. This pipeline includes all of the steps that are required to import and process the data, and train a machine learning model. 

Each pipeline step (called a 'module') is an independent module and can be run on any valid compute instance or cluster. The pipeline manages the flow of execution from one module to the next.

Most pipelines begin with a dataset from which the training data is imported, and then the data is transformed through a succession of data transformation modules, until the result is fed into a machine learning algorithm to train a model.

The Azure Machine Learning Designer

Azure Machine Learning Designer is a graphical environment for creating pipelines. It allows for no-code machine learning development through a drag-and-drop interface.

The designer includes a wide range of predefined modules for data loading and transformation, model training, and validation. There are also modules for running custom Python, R, and SQL script.



Standard pipeline modules

The Azure Machine Learning Designer includes modules for transforming data, training models, creating predictions, and comparing generated predictions with data labels. 

The general approach for each pipeline is the same:

  • Import data from a dataset

  • Transform any data columns that need additional processing to prepare them for training.

  • Select a training algorithm to train a machine learning model. The designer supports a large selection of algorithms for regression, classification, and clustering.

  • Train the model by fitting the training algorithm to the training data.

  • Use the fully trained model to generate predictions for a subset of records in the dataset.

  • Compare the predictions to the actual data and evaluate the effectiveness of the model. 


We will explore these pipeline steps in great detail in the upcoming lessons and assignments.

Advanced pipeline modules

The pipeline designer includes a lot of modules that provide common data transformations. However, sometimes you may want to implement a custom transformation using your own SQL, Python, or R code. 

To support you, the designer includes the following advanced modules:

  • Apply SQL Transformation: this module uses a SQL statement to transform one or more columns in the dataset.

  • Execute Python Script: you can use this module to run any custom Python function. The function can process up to two input dataframes and should return one or two output dataframes. 

  • Create Python Model: you can use this module to provide Python code that generates a fully trained model, in case you need a specific training setup that is not supported by the graphical designer.

  • Execute R Script: this module will run a custom R function that processes up to two input dataframes and returns one or two output dataframes.


In the upcoming assignment, we're going to build a pipeline to transform the California Housing data and get it ready for machine learning training.

Deep Learning With Azure Machine Learning

Buy nowLearn more

Course Introduction

  • I'm pleased to meet you!
  • Course prerequisites

Introduction To Machine Learning

  • What is machine learning?

Setting Up An Azure ML Workspace

  • In this section...
  • Introducing Azure Machine Learning
  • Assignment: Set up Azure Machine Learning
  • Recap

Setting Up Azure ML Datasets

  • In this section...
  • Introducing Azure Datastores and Datasets
  • Assignment: Set up the California Housing dataset
  • Recap

Processing Numeric Data

  • In this section...
  • Introducing numeric data
  • Loading numeric data
  • Introducing Azure Dataset Profiling
  • Quiz
  • Assignment: Process the California Housing dataset
  • Recap

Building Machine Learning Pipelines

  • In this section...
  • Introducing Azure Machine Learning Pipelines
  • Introducing Azure Machine Learning Experiments
  • Assignment: Build your first pipeline
  • Recap

Supervised Learning

  • Introducing supervised learning
  • Supervised learning

Regression

  • In this section...
  • Introduction
  • Introducing linear regression
  • Single linear regression
  • Introducing regression metrics
  • RMSE, MSE, and MAE
  • Introducing gradient descent
  • Gradient descent
  • Introducing multiple linear regression
  • Multiple linear regression
  • Quiz
  • Assignment: Predict house prices in California
  • My answers
  • Recap

Case study

  • Introducing case studies
  • Predict taxi prices in New York

Processing Text And Geo Data

  • In this section...
  • Introducing string data
  • Loading string data
  • Introducing geo data
  • Loading Geo data
  • Loading text data
  • Quiz
  • Assignment: Improve the California Housing pipeline
  • My answers
  • Recap

Case study

  • Predict house prices in Iowa

Binary Classification

  • In this section...
  • Introduction
  • Introducing binary classification
  • Binary classification
  • Introducing binary metrics
  • Accuracy, Precision, and Recall
  • Introducing ROC and AUC
  • ROC, AUC, and Bias
  • Quiz
  • Assignment: Predict heart disease risk
  • My answers
  • Recap

Case study

  • Detect credit card fraud in Europe

Multiclass Classification

  • In this section...
  • Introduction
  • Introducing multiclass classification
  • Multiclass classification
  • Introducing multiclass metrics
  • The confusion matrix
  • Micro and macro averages
  • Quiz
  • Assignment: Recognize handwritten digits
  • My answers
  • Recap

Deep Neural Networks

  • In this section...
  • Introducing deep neural networks
  • From linear regression to neural networks
  • The architecture of deep neural networks
  • How to visualize hidden network layers
  • How to train deep neural networks
  • Quiz
  • Assignment: Recognize cats and dogs
  • My answers
  • Recap

Training And Evaluating Models

  • In this section...
  • Introduction
  • Introducing overfitting
  • Overfitting
  • Introducing partitioning
  • Partitioning datasets
  • Minibatch training
  • Introducing K-fold cross validation
  • K-Fold Cross Validation
  • Quiz
  • Assignment: Detect spam messages
  • My answers
  • Recap

Case study

  • Flag toxic comments on Wikipedia

Decision Trees

  • In this section...
  • Introduction
  • Introducing classification trees
  • Classification trees
  • Introducing regression trees
  • Regression trees
  • Quiz
  • Assignment: Predict Titanic survivors
  • My answers
  • Recap

Case study

  • Detect diabetes in Pima indians

Ensemble Models

  • In this section...
  • Introduction
  • Introducing ensemble models
  • Ensemble models
  • Introducing bagging
  • Bagging
  • Introducing boosting
  • Boosting
  • Introducing stacking
  • Stacking
  • Quiz
  • Assignment: Predict bike demand in Washington DC
  • My answers
  • Recap

Clustering

  • In this section...
  • Introduction
  • Introducing clustering
  • K-Means Clustering
  • Introducing clustering metrics
  • The Davies Bouldin Index
  • Quiz
  • Assignment: Classify unlabeled Iris flowers
  • My answers
  • Recap

Recommendation Systems

  • In this section...
  • Introduction
  • The challenge
  • Introducing PCA
  • PCA
  • Introducing SVD
  • SVD
  • Quiz
  • Assignment: Recommend movies
  • My answers
  • Recap

In Conclusion

  • What you've learned
  • Join the affiliate program

Unsupervised Learning

  • Unsupervised learning
  • Introducing unsupervised learning