Skip to content

Commit

Permalink
update dag schema demo
Browse files Browse the repository at this point in the history
Signed-off-by: mgqa34 <mgq3374541@163.com>
  • Loading branch information
mgqa34 committed Nov 21, 2022
1 parent 709a0d5 commit a7abb08
Show file tree
Hide file tree
Showing 2 changed files with 89 additions and 84 deletions.
84 changes: 0 additions & 84 deletions schemas/jobs/lr.yaml

This file was deleted.

89 changes: 89 additions & 0 deletions schemas/jobs/pipeline_train.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
dag:
conf:
task_parallelism: 1
parties:
- party_id:
- '9999'
role: guest
- party_id:
- '10000'
- '10001'
role: host
- party_id:
- '10001'
role: arbiter
party_tasks:
guest_9999:
parties:
- party_id:
- '9999'
role: guest
tasks:
reader_0:
inputs:
parameters:
path: examples/data/breast_hetero_guest.csv
host_10000:
parties:
- party_id:
- '10000'
role: host
tasks:
reader_0:
inputs:
parameters:
path: examples/data/breast_hetero_host.csv
host_10001:
parties:
- party_id:
- '10001'
role: host
tasks:
reader_0:
inputs:
parameters:
path: examples/data/breast_hetero_host.csv
scheduler_party_id: '10001'
stage: train
tasks:
lr_0:
component_ref: hetero_lr
dependent_tasks:
- reader_0
inputs:
artifacts:
train_data:
task_output_artifact:
output_artifact_key: data
producer_task: reader_0
parameters:
max_iter: 1
lr_1:
component_ref: hetero_lr
dependent_tasks:
- reader_0
- lr_0
inputs:
artifacts:
input_model:
task_output_artifact:
output_artifact_key: output_model
producer_task: lr_0
test_data:
task_output_artifact:
output_artifact_key: data
producer_task: reader_0
stage: predict
reader_0:
component_ref: reader
parties:
- party_id:
- '9999'
role: guest
- party_id:
- '10000'
- '10001'
role: host
stage: default
schema_version: 2.0.0.alpha

0 comments on commit a7abb08

Please sign in to comment.