Sm Pipelines Step Decorator With Classic Training Step
Quick Start - Using @step Decorated Step with Classic TrainingStep
This notebook's CI test result for us-west-2 is as follows. CI test results in other regions can be found at the end of the notebook.
We’re introducing a low-code experience for data scientists to convert the Machine Learning (ML) development code into repeatable and reusable workflow steps of Amazon SageMaker Pipelines.
This sample notebook is a quick introduction to this capability with dummy Python functions wrapped as pipeline steps. It demonstrates how this capability works with the classic step types e.g. TrainingStep. To be more specific, the pipeline in this notebook shows how to pass an output property (i.e. S3ModelArtifacts) of a classic TrainingStep to a dummy evaluate function decorated by @step.
Note this notebook can only run on either Python 3.8 or Python 3.10. Otherwise, you will get an error message prompting you to provide an image_uri when defining a step.
Install the dependencies and setup configuration file path
If you run the notebook from a local IDE outside of SageMaker, please follow the "AWS CLI Prerequisites" section of the Set Up Amazon SageMaker Prerequisites to set up AWS credentials.
Define pipeline steps
Create the pipeline and run pipeline execution
Clean up resources
Notebook CI Test Results
This notebook was tested in multiple regions. The test results are as follows, except for us-west-2 which is shown at the top of the notebook.