You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Get started with [GitHub Actions](https://docs.github.com/en/actions) to train a model on Azure Machine Learning.
19
19
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.
21
21
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.
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).
49
49
50
50
### Generate deployment credentials
51
51
@@ -57,7 +57,7 @@ You'll need to first define how to authenticate with Azure. You can use a [servi
57
57
58
58
## Step 3: Update `setup.sh` to connect to your Azure Machine Learning workspace
59
59
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.
61
61
62
62
1. In your forked repository, go to `azureml-examples/cli/`.
63
63
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.
70
70
71
71
## Step 4: Update `pipeline.yml` with your compute cluster name
72
72
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.
74
74
75
75
1. In your forked repository, go to `azureml-examples/cli/jobs/pipelines/nyc-taxi/pipeline.yml`.
76
76
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,
84
84
85
85
Your workflow file is made up of a trigger section and jobs:
86
86
- 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.
88
88
- 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.
89
89
90
90
@@ -137,7 +137,7 @@ Your workflow file is made up of a trigger section and jobs:
137
137
138
138
Your workflow file is made up of a trigger section and jobs:
139
139
- 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.
141
141
- 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.
142
142
143
143
### Enable your workflow
@@ -193,7 +193,7 @@ Your workflow file is made up of a trigger section and jobs:
193
193
194
194
## Step 6: Verify your workflow run
195
195
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.
197
197
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.
198
198
199
199
:::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