Skip to content

Commit 7f01950

Browse files
committed
freshness
1 parent b5dfabb commit 7f01950

File tree

2 files changed

+45
-45
lines changed

2 files changed

+45
-45
lines changed

articles/machine-learning/how-to-github-actions-machine-learning.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ms.subservice: mlops
88
author: Blackmist
99
ms.author: larryfr
1010
ms.reviewer: jukullam
11-
ms.date: 12/06/2023
11+
ms.date: 02/07/2025
1212
ms.topic: how-to
1313
ms.custom: github-actions-azure
1414
---
@@ -17,9 +17,9 @@ ms.custom: github-actions-azure
1717
[!INCLUDE [v2](includes/machine-learning-dev-v2.md)]
1818
Get started with [GitHub Actions](https://docs.github.com/en/actions) to train a model on Azure Machine Learning.
1919

20-
This article will teach you how to create a GitHub Actions workflow that builds and deploys a machine learning model to [Azure Machine Learning](./overview-what-is-azure-machine-learning.md). You'll train a [scikit-learn](https://scikit-learn.org/) linear regression model on the NYC Taxi dataset.
20+
This article teaches you how to create a GitHub Actions workflow that builds and deploys a machine learning model to [Azure Machine Learning](./overview-what-is-azure-machine-learning.md). You train a [scikit-learn](https://scikit-learn.org/) linear regression model on the NYC Taxi dataset.
2121

22-
GitHub Actions uses a workflow YAML (.yml) file in the `/.github/workflows/` path in your repository. This definition contains the various steps and parameters that make up the workflow.
22+
GitHub Actions use a workflow YAML (.yml) file in the `/.github/workflows/` path in your repository. This definition contains the various steps and parameters that make up the workflow.
2323

2424

2525
## Prerequisites
@@ -45,7 +45,7 @@ git clone https://github.com/YOUR-USERNAME/azureml-examples
4545

4646
## Step 2: Authenticate with Azure
4747

48-
You'll need to first define how to authenticate with Azure. You can use a [service principal](/azure/active-directory/develop/app-objects-and-service-principals#service-principal-object) or [OpenID Connect](https://docs.github.com/en/actions/deployment/security-hardening-your-deployments/about-security-hardening-with-openid-connect).
48+
You need to first define how to authenticate with Azure. You can use a [service principal](/azure/active-directory/develop/app-objects-and-service-principals#service-principal-object) or [OpenID Connect](https://docs.github.com/en/actions/deployment/security-hardening-your-deployments/about-security-hardening-with-openid-connect).
4949

5050
### Generate deployment credentials
5151

@@ -57,7 +57,7 @@ You'll need to first define how to authenticate with Azure. You can use a [servi
5757

5858
## Step 3: Update `setup.sh` to connect to your Azure Machine Learning workspace
5959

60-
You'll need to update the CLI setup file variables to match your workspace.
60+
You need to update the CLI setup file variables to match your workspace.
6161

6262
1. In your forked repository, go to `azureml-examples/cli/`.
6363
1. Edit `setup.sh` and update these variables in the file.
@@ -70,7 +70,7 @@ You'll need to update the CLI setup file variables to match your workspace.
7070

7171
## Step 4: Update `pipeline.yml` with your compute cluster name
7272

73-
You'll use a `pipeline.yml` file to deploy your Azure Machine Learning pipeline. This is a machine learning pipeline and not a DevOps pipeline. You only need to make this update if you're using a name other than `cpu-cluster` for your computer cluster name.
73+
You use a `pipeline.yml` file to deploy your Azure Machine Learning pipeline. The pipeline is a machine learning pipeline and not a DevOps pipeline. You only need to make this update if you're using a name other than `cpu-cluster` for your computer cluster name.
7474

7575
1. In your forked repository, go to `azureml-examples/cli/jobs/pipelines/nyc-taxi/pipeline.yml`.
7676
1. Each time you see `compute: azureml:cpu-cluster`, update the value of `cpu-cluster` with your compute cluster name. For example, if your cluster is named `my-cluster`, your new value would be `azureml:my-cluster`. There are five updates.
@@ -84,7 +84,7 @@ Your workflow authenticates with Azure, sets up the Azure Machine Learning CLI,
8484

8585
Your workflow file is made up of a trigger section and jobs:
8686
- A trigger starts the workflow in the `on` section. The workflow runs by default on a cron schedule and when a pull request is made from matching branches and paths. Learn more about [events that trigger workflows](https://docs.github.com/actions/using-workflows/events-that-trigger-workflows).
87-
- In the jobs section of the workflow, you checkout code and log into Azure with your service principal secret.
87+
- In the jobs section of the workflow, you check out code and log into Azure with your service principal secret.
8888
- The jobs section also includes a setup action that installs and sets up the [Machine Learning CLI (v2)](how-to-configure-cli.md). Once the CLI is installed, the run job action runs your Azure Machine Learning `pipeline.yml` file to train a model with NYC taxi data.
8989

9090

@@ -137,7 +137,7 @@ Your workflow file is made up of a trigger section and jobs:
137137
138138
Your workflow file is made up of a trigger section and jobs:
139139
- A trigger starts the workflow in the `on` section. The workflow runs by default on a cron schedule and when a pull request is made from matching branches and paths. Learn more about [events that trigger workflows](https://docs.github.com/actions/using-workflows/events-that-trigger-workflows).
140-
- In the jobs section of the workflow, you checkout code and log into Azure with the Azure login action using OpenID Connect.
140+
- In the jobs section of the workflow, you check out code and log into Azure with the Azure login action using OpenID Connect.
141141
- The jobs section also includes a setup action that installs and sets up the [Machine Learning CLI (v2)](how-to-configure-cli.md). Once the CLI is installed, the run job action runs your Azure Machine Learning `pipeline.yml` file to train a model with NYC taxi data.
142142

143143
### Enable your workflow
@@ -193,7 +193,7 @@ Your workflow file is made up of a trigger section and jobs:
193193

194194
## Step 6: Verify your workflow run
195195

196-
1. Open your completed workflow run and verify that the build job ran successfully. You'll see a green checkmark next to the job.
196+
1. Open your completed workflow run and verify that the build job ran successfully. You see a green checkmark next to the job.
197197
1. Open Azure Machine Learning studio and navigate to the **nyc-taxi-pipeline-example**. Verify that each part of your job (prep, transform, train, predict, score) completed and that you see a green checkmark.
198198

199199
:::image type="content" source="media/how-to-github-actions-machine-learning/github-actions-machine-learning-nyc-taxi-complete.png" alt-text="Screenshot of successful Machine Learning Studio run.":::

0 commit comments

Comments
 (0)