Skip to content

DataConfig: no way to parameterize s3_analysis_config_output_path using Sagemaker Pipeline parameters #3879

@maslick

Description

@maslick

It looks it's not possible to parameterize s3_analysis_config_output_path using Sagemaker Pipeline parameters:

model_explainability_data_config = DataConfig(
    s3_data_input_path=step_process.properties.ProcessingOutputConfig.Outputs[
        "shap"
    ].S3Output.S3Uri,
    s3_output_path=ParameterString(name="s3_output_path", default_value="s3://helloworld/"),
    s3_analysis_config_output_path=ParameterString(name="s3_analysis_config_output_path", default_value="s3://helloworld/analasys_config"),
    label='target',
    dataset_type="text/csv",
)
Exception: s3_analysis_config_output_path cannot be of type ExecutionVariable/Expression/Parameter/Properties

Nor it is possible to leave s3_analysis_config_output_path as default value i.e. None:

model_explainability_data_config = DataConfig(
    s3_data_input_path=step_process.properties.ProcessingOutputConfig.Outputs[
        "shap"
    ].S3Output.S3Uri,
    s3_output_path=ParameterString(name="s3_output_path", default_value="s3://helloworld/"),
    label='target',
    dataset_type="text/csv",
)
Exception: `s3_output_path` cannot be of type ExecutionVariable/Expression/Parameter/Properties if `s3_analysis_config_output_path` is none or empty

The documenation states:

If this field is None, then the s3_output_path will be used to store the analysis_config output.:

Sagemaker API version: sagemaker>=2.158.0

Originally posted by @maslick in #2698 (comment)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions