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
Upgrade build train CI pipeline to multi-stage (#90)
* add staged pipeline
* remove release id
* remove train in release pipeline
* revert to BASE_NAME vars
* Move train trigger to new stage
* cleanup register comments
* add conditional for triggering train pipe
* update doc steps
* string vs boolean
* var to boolean
* set to false
* try with true
* cleanup images
* Use Coalesce so override works
* add back build artifacts
* address feedback
* include code/scoring path for ci
Great, you now have the build pipeline set up which can either be manually
173
-
triggered or automatically triggered every time there's a change in the master
174
-
branch. The pipeline performs linting, unit testing, and builds and publishes an
170
+
Great, you now have the build pipeline set up which automatically triggers every time there's a change in the master
171
+
branch. The pipeline performs linting, unit testing, builds and publishes and executes a
175
172
**ML Training Pipeline** in a **ML Workspace**.
176
173
177
174
**Note:** The build pipeline contains disabled steps to build and publish ML
178
175
pipelines using R to train a model. Enable these steps if you want to play with
179
-
this approach. For the pipeline training a model with R on Databricks you have
176
+
this approach by changing the `build-train-script` pipeline variable to either `build_train_pipeline_with_r.py`, or `build_train_pipeline_with_r_on_dbricks.py`. For the pipeline training a model with R on Databricks you have
180
177
to manually create a Databricks cluster and attach it to the ML Workspace as a
181
178
compute (Values DB_CLUSTER_ID and DATABRICKS_COMPUTE_NAME variables shoud be
182
179
specified).
183
180
184
-
### Set up a Release Trigger Pipeline to Train the Model
185
-
186
-
The next step is to invoke the training pipeline created in the previous step.
187
-
It can be done with a **Release Pipeline**. Click on the Pipelines/Releases
188
-
menu, and then **New pipeline**, and then click on "Empty Job" on the
189
-
"Select a template" window that pops to the right:
190
-
191
-

192
-
193
-
Next, click on "Add an artifact". We will select the artifact of this pipeline
194
-
to be the result of the build pipeline **ci-build**:
This release pipeline should now be automatically triggered
234
-
(continuous deployment) whenever a new **ML training pipeline** is published by
235
-
the **ci-build builder pipeline**. It can also be triggered manually or
236
-
configured to run on a scheduled basis. Create a new release to trigger the
237
-
pipeline manually by clicking on the "Create release" button on the top right
238
-
of your screen, when selecting this new build pipeline:
239
-
240
-

241
-
242
-
Leave the fields empty and click on "create". Once the release pipeline is
243
-
completed, check out in the **ML Workspace** that the training pipeline is
244
-
running:
245
-
246
181

247
182
248
183
The training pipeline will train, evaluate, and register a new model. Wait until
249
184
it is finished and make sure there is a new model in the **ML Workspace**:
250
185
251
186

252
187
253
-
Good! Now we have a trained model.
188
+
To disable the automatic trigger of the training pipeline, change the `auto-trigger-training` variable as listed in the `.pipelines\azdo-ci-build-train.yml` pipeline to `false`. This can also be overridden at runtime execution of the pipeline.
254
189
255
190
### Set up a Release Deployment Pipeline to Deploy the Model
256
191
@@ -268,9 +203,6 @@ The pipeline consumes two artifacts:
268
203
1. the result of the **Build Pipeline** as it contains configuration files
269
204
1. the **model** trained and registered by the ML training pipeline
270
205
271
-
Create a new release pipeline and add the **\_ci-build** artifact using the
272
-
same process as what we did in the previous step.
273
-
274
206
Install the **Azure Machine Learning** extension to your organization from the
0 commit comments