@@ -544,8 +544,8 @@ def __init__(self, entry_point, source_dir=None, hyperparameters=None, enable_cl
544
544
The hyperparameters are made accessible as a dict[str, str] to the training code on SageMaker.
545
545
For convenience, this accepts other types for keys and values, but ``str()`` will be called
546
546
to convert them before training.
547
- enable_cloudwatch_metrics (bool): Whether training and hosting containers will
548
- generate CloudWatch metrics under the AWS/SageMakerContainer namespace (default: False) .
547
+ enable_cloudwatch_metrics (bool): [DEPRECATED] Now there are cloudwatch metrics emitted by all SageMaker
548
+ training jobs. This will be ignored for now and removed in a further release .
549
549
container_log_level (int): Log level to use within the container (default: logging.INFO).
550
550
Valid values are defined in the Python logging module.
551
551
code_location (str): Name of the S3 bucket where custom code is uploaded (default: None).
@@ -558,7 +558,9 @@ def __init__(self, entry_point, source_dir=None, hyperparameters=None, enable_cl
558
558
super (Framework , self ).__init__ (** kwargs )
559
559
self .source_dir = source_dir
560
560
self .entry_point = entry_point
561
- self .enable_cloudwatch_metrics = enable_cloudwatch_metrics
561
+ if enable_cloudwatch_metrics :
562
+ logging .warn ('enable_cloudwatch_metrics is now deprecated and will be removed in the future.' )
563
+ self .enable_cloudwatch_metrics = False
562
564
self .container_log_level = container_log_level
563
565
self ._hyperparameters = hyperparameters or {}
564
566
self .code_location = code_location
0 commit comments