@@ -507,8 +507,8 @@ def __init__(self, entry_point, source_dir=None, hyperparameters=None, enable_cl
507
507
The hyperparameters are made accessible as a dict[str, str] to the training code on SageMaker.
508
508
For convenience, this accepts other types for keys and values, but ``str()`` will be called
509
509
to convert them before training.
510
- enable_cloudwatch_metrics (bool): Whether training and hosting containers will
511
- generate CloudWatch metrics under the AWS/SageMakerContainer namespace (default: False) .
510
+ enable_cloudwatch_metrics (bool): [DEPRECATED] Now there are cloudwatch metrics emitted by all SageMaker
511
+ training jobs. This will be ignored for now and removed in a further release .
512
512
container_log_level (int): Log level to use within the container (default: logging.INFO).
513
513
Valid values are defined in the Python logging module.
514
514
code_location (str): Name of the S3 bucket where custom code is uploaded (default: None).
@@ -521,7 +521,9 @@ def __init__(self, entry_point, source_dir=None, hyperparameters=None, enable_cl
521
521
super (Framework , self ).__init__ (** kwargs )
522
522
self .source_dir = source_dir
523
523
self .entry_point = entry_point
524
- self .enable_cloudwatch_metrics = enable_cloudwatch_metrics
524
+ if enable_cloudwatch_metrics :
525
+ logging .warn ('enable_cloudwatch_metrics is now deprecated and will be removed in the future.' )
526
+ self .enable_cloudwatch_metrics = False
525
527
self .container_log_level = container_log_level
526
528
self ._hyperparameters = hyperparameters or {}
527
529
self .code_location = code_location
0 commit comments