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 .steps import Step , StepTypeEnum , CacheConfig
44
44
from sagemaker .workflow .check_job_config import CheckJobConfig
@@ -58,7 +58,7 @@ class ClarifyCheckConfig(ABC):
58
58
data_config (DataConfig): Config of the input/output data.
59
59
kms_key (str): The ARN of the KMS key that is used to encrypt the
60
60
user code file (default: None).
61
- This field CANNOT be any of PipelineNonPrimitiveInputTypes .
61
+ This field CANNOT be any type of the `PipelineVariable` .
62
62
monitoring_analysis_config_uri: (str): The uri of monitoring analysis config.
63
63
This field does not take input.
64
64
It will be generated once uploading the created analysis config file.
@@ -85,7 +85,7 @@ class DataBiasCheckConfig(ClarifyCheckConfig):
85
85
"`KS <https://docs.aws.amazon.com/sagemaker/latest/dg/clarify-data-bias-metric-kolmogorov-smirnov.html>`_",
86
86
"`CDDL <https://docs.aws.amazon.com/sagemaker/latest/dg/clarify-data-bias-metric-cddl.html>`_"].
87
87
Defaults to computing all.
88
- This field CANNOT be any of PipelineNonPrimitiveInputTypes .
88
+ This field CANNOT be any type of the `PipelineVariable` .
89
89
""" # noqa E501
90
90
91
91
data_bias_config : BiasConfig = attr .ib ()
@@ -114,7 +114,7 @@ class ModelBiasCheckConfig(ClarifyCheckConfig):
114
114
", "`TE <https://docs.aws.amazon.com/sagemaker/latest/dg/clarify-post-training-bias-metric-te.html>`_",
115
115
"`FT <https://docs.aws.amazon.com/sagemaker/latest/dg/clarify-post-training-bias-metric-ft.html>`_"].
116
116
Defaults to computing all.
117
- This field CANNOT be any of PipelineNonPrimitiveInputTypes .
117
+ This field CANNOT be any type of the `PipelineVariable` .
118
118
"""
119
119
120
120
data_bias_config : BiasConfig = attr .ib ()
@@ -135,7 +135,7 @@ class ModelExplainabilityCheckConfig(ClarifyCheckConfig):
135
135
in the model output for the predicted scores to be explained (default: None).
136
136
This is not required if the model output is a single score. Alternatively,
137
137
an instance of ModelPredictedLabelConfig can be provided
138
- but this field CANNOT be any of PipelineNonPrimitiveInputTypes .
138
+ but this field CANNOT be any type of the `PipelineVariable` .
139
139
"""
140
140
141
141
model_config : ModelConfig = attr .ib ()
@@ -151,10 +151,10 @@ def __init__(
151
151
name : str ,
152
152
clarify_check_config : ClarifyCheckConfig ,
153
153
check_job_config : CheckJobConfig ,
154
- skip_check : Union [bool , PipelineNonPrimitiveInputTypes ] = False ,
155
- register_new_baseline : Union [bool , PipelineNonPrimitiveInputTypes ] = False ,
156
- model_package_group_name : Union [str , PipelineNonPrimitiveInputTypes ] = None ,
157
- supplied_baseline_constraints : Union [str , PipelineNonPrimitiveInputTypes ] = None ,
154
+ skip_check : Union [bool , PipelineVariable ] = False ,
155
+ register_new_baseline : Union [bool , PipelineVariable ] = False ,
156
+ model_package_group_name : Union [str , PipelineVariable ] = None ,
157
+ supplied_baseline_constraints : Union [str , PipelineVariable ] = None ,
158
158
display_name : str = None ,
159
159
description : str = None ,
160
160
cache_config : CacheConfig = None ,
@@ -166,14 +166,14 @@ def __init__(
166
166
name (str): The name of the ClarifyCheckStep step.
167
167
clarify_check_config (ClarifyCheckConfig): A ClarifyCheckConfig instance.
168
168
check_job_config (CheckJobConfig): A CheckJobConfig instance.
169
- skip_check (bool or PipelineNonPrimitiveInputTypes ): Whether the check
169
+ skip_check (bool or PipelineVariable ): Whether the check
170
170
should be skipped (default: False).
171
- register_new_baseline (bool or PipelineNonPrimitiveInputTypes ): Whether
171
+ register_new_baseline (bool or PipelineVariable ): Whether
172
172
the new baseline should be registered (default: False).
173
- model_package_group_name (str or PipelineNonPrimitiveInputTypes ): The name of a
173
+ model_package_group_name (str or PipelineVariable ): The name of a
174
174
registered model package group, among which the baseline will be fetched
175
175
from the latest approved model (default: None).
176
- supplied_baseline_constraints (str or PipelineNonPrimitiveInputTypes ): The S3 path
176
+ supplied_baseline_constraints (str or PipelineVariable ): The S3 path
177
177
to the supplied constraints object representing the constraints JSON file
178
178
which will be used for drift to check (default: None).
179
179
display_name (str): The display name of the ClarifyCheckStep step (default: None).
0 commit comments