3737from sagemaker .model_monitor .model_monitoring import _MODEL_MONITOR_S3_PATH
3838from sagemaker .processing import ProcessingInput , ProcessingOutput , ProcessingJob
3939from sagemaker .utils import name_from_base
40- from sagemaker .workflow import PipelineNonPrimitiveInputTypes , is_pipeline_variable
41- from sagemaker .workflow .entities import RequestType
40+ from sagemaker .workflow import is_pipeline_variable
41+ from sagemaker .workflow .entities import RequestType , PipelineVariable
4242from sagemaker .workflow .properties import Properties
4343from sagemaker .workflow .step_collections import StepCollection
4444from sagemaker .workflow .steps import Step , StepTypeEnum , CacheConfig
@@ -59,7 +59,7 @@ class ClarifyCheckConfig(ABC):
5959 data_config (DataConfig): Config of the input/output data.
6060 kms_key (str): The ARN of the KMS key that is used to encrypt the
6161 user code file (default: None).
62- This field CANNOT be any of PipelineNonPrimitiveInputTypes .
62+ This field CANNOT be any type of the `PipelineVariable` .
6363 monitoring_analysis_config_uri: (str): The uri of monitoring analysis config.
6464 This field does not take input.
6565 It will be generated once uploading the created analysis config file.
@@ -86,7 +86,7 @@ class DataBiasCheckConfig(ClarifyCheckConfig):
8686 "`KS <https://docs.aws.amazon.com/sagemaker/latest/dg/clarify-data-bias-metric-kolmogorov-smirnov.html>`_",
8787 "`CDDL <https://docs.aws.amazon.com/sagemaker/latest/dg/clarify-data-bias-metric-cddl.html>`_"].
8888 Defaults to computing all.
89- This field CANNOT be any of PipelineNonPrimitiveInputTypes .
89+ This field CANNOT be any type of the `PipelineVariable` .
9090 """ # noqa E501
9191
9292 data_bias_config : BiasConfig = attr .ib ()
@@ -115,7 +115,7 @@ class ModelBiasCheckConfig(ClarifyCheckConfig):
115115 ", "`TE <https://docs.aws.amazon.com/sagemaker/latest/dg/clarify-post-training-bias-metric-te.html>`_",
116116 "`FT <https://docs.aws.amazon.com/sagemaker/latest/dg/clarify-post-training-bias-metric-ft.html>`_"].
117117 Defaults to computing all.
118- This field CANNOT be any of PipelineNonPrimitiveInputTypes .
118+ This field CANNOT be any type of the `PipelineVariable` .
119119 """
120120
121121 data_bias_config : BiasConfig = attr .ib ()
@@ -136,7 +136,7 @@ class ModelExplainabilityCheckConfig(ClarifyCheckConfig):
136136 in the model output for the predicted scores to be explained (default: None).
137137 This is not required if the model output is a single score. Alternatively,
138138 an instance of ModelPredictedLabelConfig can be provided
139- but this field CANNOT be any of PipelineNonPrimitiveInputTypes .
139+ but this field CANNOT be any type of the `PipelineVariable` .
140140 """
141141
142142 model_config : ModelConfig = attr .ib ()
@@ -152,10 +152,10 @@ def __init__(
152152 name : str ,
153153 clarify_check_config : ClarifyCheckConfig ,
154154 check_job_config : CheckJobConfig ,
155- skip_check : Union [bool , PipelineNonPrimitiveInputTypes ] = False ,
156- register_new_baseline : Union [bool , PipelineNonPrimitiveInputTypes ] = False ,
157- model_package_group_name : Union [str , PipelineNonPrimitiveInputTypes ] = None ,
158- supplied_baseline_constraints : Union [str , PipelineNonPrimitiveInputTypes ] = None ,
155+ skip_check : Union [bool , PipelineVariable ] = False ,
156+ register_new_baseline : Union [bool , PipelineVariable ] = False ,
157+ model_package_group_name : Union [str , PipelineVariable ] = None ,
158+ supplied_baseline_constraints : Union [str , PipelineVariable ] = None ,
159159 display_name : str = None ,
160160 description : str = None ,
161161 cache_config : CacheConfig = None ,
@@ -167,14 +167,14 @@ def __init__(
167167 name (str): The name of the ClarifyCheckStep step.
168168 clarify_check_config (ClarifyCheckConfig): A ClarifyCheckConfig instance.
169169 check_job_config (CheckJobConfig): A CheckJobConfig instance.
170- skip_check (bool or PipelineNonPrimitiveInputTypes ): Whether the check
170+ skip_check (bool or PipelineVariable ): Whether the check
171171 should be skipped (default: False).
172- register_new_baseline (bool or PipelineNonPrimitiveInputTypes ): Whether
172+ register_new_baseline (bool or PipelineVariable ): Whether
173173 the new baseline should be registered (default: False).
174- model_package_group_name (str or PipelineNonPrimitiveInputTypes ): The name of a
174+ model_package_group_name (str or PipelineVariable ): The name of a
175175 registered model package group, among which the baseline will be fetched
176176 from the latest approved model (default: None).
177- supplied_baseline_constraints (str or PipelineNonPrimitiveInputTypes ): The S3 path
177+ supplied_baseline_constraints (str or PipelineVariable ): The S3 path
178178 to the supplied constraints object representing the constraints JSON file
179179 which will be used for drift to check (default: None).
180180 display_name (str): The display name of the ClarifyCheckStep step (default: None).
0 commit comments