Skip to content

Commit

Permalink
Update component.yaml to kfp v2 sdk
Browse files Browse the repository at this point in the history
Update component.yaml to kfp v2 compatible. In v2,
you need to declare the data type for all of the input/output
arguments.

Signed-off-by: Yihong Wang <[email protected]>
  • Loading branch information
yhwang committed Aug 11, 2021
1 parent fcda24e commit 76ae337
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions mlops/kubeflow/bias_detector_pytorch/component.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,20 @@ description: |
metadata:
annotations: {platform: 'OpenSource'}
inputs:
- {name: model_id, description: 'Required. Training model ID', default: 'training-dummy'}
- {name: model_class_file, description: 'Required. pytorch model class file', default: 'PyTorchModel.py'}
- {name: model_class_name, description: 'Required. pytorch model class name', default: 'PyTorchModel'}
- {name: feature_testset_path, description: 'Required. Feature test dataset path in the data bucket'}
- {name: label_testset_path, description: 'Required. Label test dataset path in the data bucket'}
- {name: protected_label_testset_path, description: 'Required. Protected label test dataset path in the data bucket'}
- {name: favorable_label, description: 'Required. Favorable label for this model predictions'}
- {name: unfavorable_label, description: 'Required. Unfavorable label for this model predictions'}
- {name: privileged_groups, description: 'Required. Privileged feature groups within this model'}
- {name: unprivileged_groups, description: 'Required. Unprivileged feature groups within this model'}
- {name: data_bucket_name, description: 'Optional. Bucket that has the processed data', default: 'training-data'}
- {name: result_bucket_name, description: 'Optional. Bucket that has the training results', default: 'training-result'}
- {name: model_id, type: String, description: 'Required. Training model ID', default: 'training-dummy'}
- {name: model_class_file, type: String, description: 'Required. pytorch model class file', default: 'PyTorchModel.py'}
- {name: model_class_name, type: String, description: 'Required. pytorch model class name', default: 'PyTorchModel'}
- {name: feature_testset_path, type: String, description: 'Required. Feature test dataset path in the data bucket'}
- {name: label_testset_path, type: String, description: 'Required. Label test dataset path in the data bucket'}
- {name: protected_label_testset_path, type: String, description: 'Required. Protected label test dataset path in the data bucket'}
- {name: favorable_label, type: String, description: 'Required. Favorable label for this model predictions'}
- {name: unfavorable_label, type: String, description: 'Required. Unfavorable label for this model predictions'}
- {name: privileged_groups, type: String, description: 'Required. Privileged feature groups within this model'}
- {name: unprivileged_groups, type: String, description: 'Required. Unprivileged feature groups within this model'}
- {name: data_bucket_name, type: String, description: 'Optional. Bucket that has the processed data', default: 'training-data'}
- {name: result_bucket_name, type: String, description: 'Optional. Bucket that has the training results', default: 'training-result'}
outputs:
- {name: metric_path, description: 'Path for fairness check output'}
- {name: metric_path, type: String, description: 'Path for fairness check output'}
implementation:
container:
image: aipipeline/bias-detector:pytorch
Expand Down

0 comments on commit 76ae337

Please sign in to comment.