-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Labels
component: pipelinesRelates to the SageMaker Pipeline PlatformRelates to the SageMaker Pipeline Platformtype: feature request
Description
Is there a way to create an object of type Pipeline when given a valid dictionary without having to reconstruct all pipeline parameters? For example:
Instead of:
pipeline = Pipeline(
name="AbalonePipeline",
parameters=[
processing_instance_type,
processing_instance_count,
training_instance_type,
model_approval_status,
input_data,
batch_data,
],
steps=[step_process, step_train, step_eval, step_cond],
)
Could we have something like:
pipeline = Pipeline(json.loads(<some valid json pipeline defintion>))
Also with this change, something like this would work:
pipeline_1 = Pipeline(
name="AbalonePipeline1",
parameters=[
processing_instance_type,
processing_instance_count,
training_instance_type,
model_approval_status,
input_data,
batch_data,
],
steps=[step_process, step_train, step_eval, step_cond],
)
pipeline_1_definition = json.loads(pipeline_1.definition())
pipeline_2 = Pipeline(
name="AbalonePipeline2",
parameters=pipeline_1_definition["Parameters"],
steps=pipeline_1_definition["Steps"],
)
lorenzwalthert
Metadata
Metadata
Assignees
Labels
component: pipelinesRelates to the SageMaker Pipeline PlatformRelates to the SageMaker Pipeline Platformtype: feature request