AWS Security ChangesHomeSearch

AWS sagemaker documentation change

Service: sagemaker · 2026-07-01 · Documentation low

File: sagemaker/latest/dg/define-train-metrics.md

Summary

Removed legacy SageMaker Python SDK v2 examples and empty v3 section from training metrics documentation

Security assessment

The changes remove outdated code examples and empty sections without introducing security content or addressing vulnerabilities. No security implications are present as this is routine documentation cleanup.

Diff

diff --git a/sagemaker/latest/dg/define-train-metrics.md b/sagemaker/latest/dg/define-train-metrics.md
index 676551112..74b338855 100644
--- a//sagemaker/latest/dg/define-train-metrics.md
+++ b//sagemaker/latest/dg/define-train-metrics.md
@@ -47,3 +46,0 @@ In the regex for the `train:error` metric defined in the preceding example, the
-SageMaker Python SDK v3
-    
-
@@ -84,23 +80,0 @@ For more information about training by using [Amazon SageMaker Python SDK](https
-SageMaker Python SDK v2 (Legacy)
-    
-
-Define the metrics that you want to send to CloudWatch by specifying a list of metric names and regular expressions as the `metric_definitions` argument when you initialize an `Estimator` object. For example, if you want to monitor both the `train:error` and `validation:error` metrics in CloudWatch, your `Estimator` initialization would look like the following example:
-    
-    
-    import sagemaker
-    from sagemaker.estimator import Estimator
-    
-    estimator = Estimator(
-        image_uri="your-own-image-uri",
-        role=sagemaker.get_execution_role(), 
-        sagemaker_session=sagemaker.Session(),
-        instance_count=1,
-        instance_type='ml.c4.xlarge',
-        metric_definitions=[
-           {'Name': 'train:error', 'Regex': 'Train_error=(.*?);'},
-           {'Name': 'validation:error', 'Regex': 'Valid_error=(.*?);'}
-        ]
-    )
-
-For more information about training by using [Amazon SageMaker Python SDK](https://sagemaker.readthedocs.io/en/stable) estimators, see[ Sagemaker Python SDK](https://github.com/aws/sagemaker-python-sdk#sagemaker-python-sdk-overview) on GitHub. 
-