load_link_pipeline_from_kfp은 LinkPipeline 클래스를 생성하여, Link에서 생성된 Kubeflow yaml 파일에서의 파이프라인 객체를 불러오는 메소드입니다.
Kubeflow yaml 파일에서의 파이프라인 객체 불러오기
yaml 파일에서의 파이프라인 객체 불러오기Link에서 생성된 Kubeflow yaml 파일에서의 파이프라인 객체를 불러옵니다.
load_link_pipeline_from_kfp(file: str = "") -> LinkPipeline
- Parameters
file(str): 불러오고자 하는yaml파일의 경로 및 이름
- Returns
LinkPipeline
- Troubleshooting
- FileNotFoundError: No such file or directory: '{file.yaml}'
file이라는 이름의yaml파일이 존재하지 않을 경우 발생합니다.
- ValueError: The file should be
yamlfile with a Link pipeline- 입력한 파일이
yaml형식이지만 Link에서 생성된 파이프라인 정보가 해당 파일에 없을 경우 발생합니다.
- 입력한 파일이
- FileNotFoundError: No such file or directory: '{file.yaml}'
Example
-
Sample Source
yaml파일을 다운로드 받습니다. -
해당
yaml파일에서의 파이프라인 객체를 불러옵니다.from mrx_link.sdk.utils import * if __name__ == "__main__": pipeline = load_link_pipeline_from_kfp(file="sample.yaml")
