last_run = training_pipeline()

print(last_run.id)# You can also use the class directly with the `model` object

last_run = training_pipeline.model.last_run

print(last_run.id)

# OR you can fetch it after execution is finished:

pipeline = Client().get_pipeline("training_pipeline")

last_run = pipeline.last_run

print(last_run.id)

# You can now fetch the model

trainer_step = last_run.steps["svc_trainer"]

model = trainer_step.outputs["trained_model"].load()

PreviousAccess secrets in a step

NextGet past pipeline/step runs

Last updated 19 days ago