You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/amazon_sagemaker_model_building_pipeline.rst
+126
Original file line number
Diff line number
Diff line change
@@ -954,6 +954,132 @@ When model repacking is needed, :class:`sagemaker.workflow.model_step.ModelStep`
954
954
955
955
:class:`sagemaker.workflow.model_step.ModelStep` uses the provided inputs to automatically detect if a repack is needed. If a repack is needed, :class:`sagemaker.workflow.steps.TrainingStep`is added to the step collection for that repack. Then, either :class:`sagemaker.workflow.steps.CreateModelStep`or :class:`sagemaker.workflow.step_collections.RegisterModelStep` will be chained after it.
956
956
957
+
MonitorBatchTransform Step
958
+
===========================
959
+
960
+
MonitorBatchTransformStep is a new step type that allows customers to use SageMaker Model Monitor with batch transform jobs that are a part of their pipeline. Using this step, customers can set up the following monitors for their batch transform job: data quality, model quality, model bias, and feature attribution.
961
+
962
+
963
+
When configuring this step, customers have the flexibility to run the monitoring job before or after the transform job executes. There is an additional flag called :code:`fail_on_violation` which will fail the step ifset to true and there is a monitoring violation, or will continue to execute the step ifset to false.
964
+
965
+
Here is an example showing you how to configure a :class:`sagemaker.workflow.monitor_batch_transform_step.MonitorBatchTransformStep`with a Data Quality monitor.
966
+
967
+
.. code-block:: python
968
+
969
+
from sagemaker.workflow.pipeline_context import PipelineSession
970
+
971
+
from sagemaker.transformer import Transformer
972
+
from sagemaker.model_monitor import DefaultModelMonitor
973
+
from sagemaker.model_monitor.dataset_format import DatasetFormat
974
+
from sagemaker.workflow.check_job_config import CheckJobConfig
975
+
from sagemaker.workflow.quality_check_step import DataQualityCheckConfig
976
+
977
+
from sagemaker.workflow.parameters import ParameterString
The same example can be extended for model quality, bias, and feature attribute monitoring.
1033
+
1034
+
.. warning::
1035
+
Note that to run on-demand model quality, you will need to have the ground truth data ready. When running the transform job, include the ground truth inside your transform input, and join the transform inference inputand output. Then you can indicate which attribute or column name/index points to the ground truth when run the monitoring job.
0 commit comments