37
37
from sagemaker .model_monitor .model_monitoring import _MODEL_MONITOR_S3_PATH
38
38
from sagemaker .processing import ProcessingInput , ProcessingOutput , ProcessingJob
39
39
from 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
42
42
from sagemaker .workflow .properties import Properties
43
43
from sagemaker .workflow .step_collections import StepCollection
44
44
from sagemaker .workflow .steps import Step , StepTypeEnum , CacheConfig
@@ -59,7 +59,7 @@ class ClarifyCheckConfig(ABC):
59
59
data_config (DataConfig): Config of the input/output data.
60
60
kms_key (str): The ARN of the KMS key that is used to encrypt the
61
61
user code file (default: None).
62
- This field CANNOT be any of PipelineNonPrimitiveInputTypes .
62
+ This field CANNOT be any type of the `PipelineVariable` .
63
63
monitoring_analysis_config_uri: (str): The uri of monitoring analysis config.
64
64
This field does not take input.
65
65
It will be generated once uploading the created analysis config file.
@@ -86,7 +86,7 @@ class DataBiasCheckConfig(ClarifyCheckConfig):
86
86
"`KS <https://docs.aws.amazon.com/sagemaker/latest/dg/clarify-data-bias-metric-kolmogorov-smirnov.html>`_",
87
87
"`CDDL <https://docs.aws.amazon.com/sagemaker/latest/dg/clarify-data-bias-metric-cddl.html>`_"].
88
88
Defaults to computing all.
89
- This field CANNOT be any of PipelineNonPrimitiveInputTypes .
89
+ This field CANNOT be any type of the `PipelineVariable` .
90
90
""" # noqa E501
91
91
92
92
data_bias_config : BiasConfig = attr .ib ()
@@ -115,7 +115,7 @@ class ModelBiasCheckConfig(ClarifyCheckConfig):
115
115
", "`TE <https://docs.aws.amazon.com/sagemaker/latest/dg/clarify-post-training-bias-metric-te.html>`_",
116
116
"`FT <https://docs.aws.amazon.com/sagemaker/latest/dg/clarify-post-training-bias-metric-ft.html>`_"].
117
117
Defaults to computing all.
118
- This field CANNOT be any of PipelineNonPrimitiveInputTypes .
118
+ This field CANNOT be any type of the `PipelineVariable` .
119
119
"""
120
120
121
121
data_bias_config : BiasConfig = attr .ib ()
@@ -136,7 +136,7 @@ class ModelExplainabilityCheckConfig(ClarifyCheckConfig):
136
136
in the model output for the predicted scores to be explained (default: None).
137
137
This is not required if the model output is a single score. Alternatively,
138
138
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` .
140
140
"""
141
141
142
142
model_config : ModelConfig = attr .ib ()
@@ -152,10 +152,10 @@ def __init__(
152
152
name : str ,
153
153
clarify_check_config : ClarifyCheckConfig ,
154
154
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 ,
159
159
display_name : str = None ,
160
160
description : str = None ,
161
161
cache_config : CacheConfig = None ,
@@ -167,14 +167,14 @@ def __init__(
167
167
name (str): The name of the ClarifyCheckStep step.
168
168
clarify_check_config (ClarifyCheckConfig): A ClarifyCheckConfig instance.
169
169
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
171
171
should be skipped (default: False).
172
- register_new_baseline (bool or PipelineNonPrimitiveInputTypes ): Whether
172
+ register_new_baseline (bool or PipelineVariable ): Whether
173
173
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
175
175
registered model package group, among which the baseline will be fetched
176
176
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
178
178
to the supplied constraints object representing the constraints JSON file
179
179
which will be used for drift to check (default: None).
180
180
display_name (str): The display name of the ClarifyCheckStep step (default: None).
0 commit comments