-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpipeline.yml
49 lines (46 loc) · 1.59 KB
/
pipeline.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
$schema: https://azuremlschemas.azureedge.net/latest/pipelineJob.schema.json
type: pipeline
display_name: amlv2_pipeline
settings:
force_rerun: true
identity:
type: user_identity
jobs:
data_engineering:
type: command
code: data-engineering
command: python data-engineering.py --raw_data_file ${{inputs.raw_data_file}} --training_data_folder ${{outputs.training_data_folder}}
inputs:
raw_data_file:
type: uri_file
mode: ro_mount
path: azureml://datastores/workspaceblobstore/paths/datalake/amlv2_pipeline_raw_data/raw_data.csv
outputs:
training_data_folder:
type: uri_folder
mode: rw_mount
path: azureml://datastores/workspaceblobstore/paths/datalake/amlv2_pipeline_training_data
environment: azureml:amlv2-p-data-engineering@latest
compute: serverless
resources:
instance_count: 1
instance_type: Standard_F4s_v2
training:
type: command
code: training
command: python training.py --training_data_folder ${{inputs.training_data_folder}} --predictions_data_folder ${{outputs.predictions_data_folder}}
inputs:
training_data_folder:
type: uri_folder
mode: ro_mount
path: ${{parent.jobs.data_engineering.outputs.training_data_folder}}
outputs:
predictions_data_folder:
type: uri_folder
mode: rw_mount
path: azureml://datastores/workspaceblobstore/paths/datalake/amlv2_pipeline_prediction_data
environment: azureml:amlv2-p-training@latest
compute: serverless
resources:
instance_count: 1
instance_type: Standard_F4s_v2