Steps & Pipelines
Steps and Pipelines are the core building blocks of ZenML
The Relationship Between Steps and Pipelines
Basic Steps
Creating a Simple Step
from zenml import step
@step
def load_data() -> dict:
training_data = [[1, 2], [3, 4], [5, 6]]
labels = [0, 1, 0]
return {'features': training_data, 'labels': labels}Step Inputs and Outputs
Custom Output Names
Basic Pipelines
Creating a Simple Pipeline
Running Pipelines
End-to-End Example
Parameters and Artifacts
Understanding the Difference
Parameter Types
Parameterizing Workflows
Step Parameterization
Pipeline Parameterization
Step Type Handling & Output Management
Type Annotations
Multiple Return Values
Conclusion
Last updated
Was this helpful?