Azure Machine Learning Components

Overview of Azure Machine Learning pipeline components for workflow improvements

Azure Machine Learning (Azure ML) components are pipeline components that integrate with Azure ML to manage the lifecycle of your machine learning (ML) models to improve the quality and consistency of your machine learning solution. A pipeline component is a self-contained set of code that performs one step in the ML workflow. A component is analogous to a function, in that it has a name, parameters, return value and a body.

You can use Azure Machine Learning components to increase the efficiency of your workflow with Azure Machine Learning, such as continuous integration, delivery, and deployment.

The components provide capabilities for:

  • Faster experimentation and development of models
  • Faster deployment of models into production
  • Quality assurance

Prerequisites

  • You should have Kubeflow installed on your AKS cluster. If you don’t, follow the Kubeflow installation (for Azure) guide.
  • To interact with Azure resources, you may need to configure them before using a particular pipeline component. Check the README for each component to learn about what Azure resources are required.
  • The kfp.azure extension can be used to create a secret to interact with Azure resources. To create Azure credentials, run:
# Initialize variables:
AZ_SUBSCRIPTION_ID={Your_Azure_subscription_ID}
AZ_TENANT_ID={Your_Tenant_ID}
AZ_CLIENT_ID={Your_client_ID}
AZ_CLIENT_SECRET={Your_client_secret}
KUBEFLOW_NAMESPACE=kubeflow

kubectl create secret generic azcreds --from-literal=AZ_SUBSCRIPTION_ID=$AZ_SUBSCRIPTION_ID \

                                      --from-literal=AZ_TENANT_ID=$AZ_TENANT_ID \

                                      --from-literal=AZ_CLIENT_ID=$AZ_CLIENT_ID \

                                      --from-literal=AZ_CLIENT_SECRET=$AZ_CLIENT_SECRET \

                                      -n $KUBEFLOW_NAMESPACE

Azure ML Register Model component

Model registration allows you to store and version your models in Azure Machine Learning in your workspace. The model registry makes it easy to organize and keep track of your trained models. After you register the model, you can then download or deploy it and receive all the registered files.

To learn more about the Azure ML Register Model pipeline component, refer to the official repository.

To learn more about using Azure ML to manage the lifecycle of your models, go to Model management, deployment, and monitoring.

Azure ML Deploy Model component

Trained machine learning models are deployed as web services in the cloud and you can use your model by accessing its endpoint. When using the model as a web service, the following items are included in the Azure ML Deploy Model component:

  • An entry script
  • Azure ML environment configurations

For more information about the Azure ML Deploy Model pipeline component, check the official repository.

To learn more about using Azure ML to manage the lifecycle of your models, go to Model management, deployment, and monitoring.

Other Azure ML capabilities

You can learn more about the capabilities of Azure ML and how to improve your ML workflow by checking the Azure ML documentation