The method load_link_pipeline_from_kfp
loads a pipeline object from an Kubeflow yaml
file while creating the class LinkPipeline
.
Load a pipeline object from an Kubeflow yaml
file
yaml
fileLoad a pipeline object from an Kubeflow yaml
file created in Link.
load_link_pipeline_from_kfp(file: str = "") -> LinkPipeline
- Parameters
file
(str): The path and name ofyaml
file to load
- Returns
LinkPipeline
- Troubleshooting
- FileNotFoundError: [Error 2] No such file or directory: '{file.yaml}'
- This occurs when the input file does not exist.
- ValueError: The file should be
yaml
file with a Link pipeline- This occurs when the
yaml
file was not created with Link.
- This occurs when the
- FileNotFoundError: [Error 2] No such file or directory: '{file.yaml}'
Example
-
Download sample
yaml
file below. -
Load a pipeline object from the
yaml
file.from mrx_link.sdk.utils import * if __name__ == "__main__": pipeline = load_link_pipeline_from_kfp(file="sample.yaml")