How to create ML pipelines in ZenML
zenml.steps.step_output.Output
class to indicate the names of each output. These names can be used to directly access the outputs of steps after running a pipeline, as we will see in a later chapter.
Let’s come up with a second step that consumes the output of our first step and performs some sort of transformation on it. In this case, let’s train a support vector machine classifier on the training data using sklearn:
.entrypoint()
method with the same input signature. For example:
Using the Class-based API
Using the Class-based API
.run()
method:
my_pipeline.run()
, ZenML uses the current date and time as the name for the pipeline run. In order to change the name for a run, pass run_name
as a parameter to the run()
function:
unlisted
runs and can be created by passing the unlisted
parameter when running a pipeline: pipeline_instance.run(unlisted=True)
.zenml pipeline delete <PIPELINE_ID_OR_NAME>
.Code Example for this Section