Kubeflow Pipelines SDK
Project description
kfp
: Kubeflow Pipelines SDK (pre-release)
Note: This is a pre-release and is not yet stable. Please report bugs and provide feedback via GitHub Issues.
Kubeflow Pipelines is a platform for building and deploying portable, scalable machine learning workflows based on Docker containers within the Kubeflow project.
Use Kubeflow Pipelines to compose a multi-step workflow (pipeline) as a graph of containerized tasks using Python code and/or YAML. Then, run your pipeline with specified pipeline arguments, rerun your pipeline with new arguments or data, schedule your pipeline to run on a recurring basis, organize your runs into experiments, save machine learning artifacts to compliant artifact registries, and visualize it all through the Kubeflow Dashboard.
Installation
To install the kfp
pre-release, run:
pip install --pre kfp
Getting started
The following is an example of a simple pipeline that uses the kfp
v2 syntax:
from kfp import dsl
import kfp
@dsl.component
def add(a: float, b: float) -> float:
'''Calculates sum of two arguments'''
return a + b
@dsl.pipeline(
name='Addition pipeline',
description='An example pipeline that performs addition calculations.')
def add_pipeline(
a=1.0,
b=7.0,
):
first_add_task = add(a=a, b=4.0)
second_add_task = add(a=first_add_task.output, b=b)
client = kfp.Client(host='<my-host-url>')
client.create_run_from_pipeline_func(
add_pipeline, arguments={
'a': 7.0,
'b': 8.0
})
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file kfp-2.0.0-beta.1.tar.gz
.
File metadata
- Download URL: kfp-2.0.0-beta.1.tar.gz
- Upload date:
- Size: 326.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.7.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b7d5e170ceb3447e6548ef59a8520d1075bd30eb81a558596f9a746430c5b273 |
|
MD5 | 5ec69cda25e28940b68c4ee75d243f5f |
|
BLAKE2b-256 | e5f475973ee125f771ef6d4c438397e17b7873cac913541f619e45390ecc0c88 |