-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Deprecate enable_cloudwatch_metrics from Frameworks #292
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov Report
@@ Coverage Diff @@
## master #292 +/- ##
==========================================
+ Coverage 92.93% 92.93% +<.01%
==========================================
Files 51 51
Lines 3552 3555 +3
==========================================
+ Hits 3301 3304 +3
Misses 251 251
Continue to review full report at Codecov.
|
src/sagemaker/estimator.py
Outdated
@@ -521,7 +521,9 @@ def __init__(self, entry_point, source_dir=None, hyperparameters=None, enable_cl | |||
super(Framework, self).__init__(**kwargs) | |||
self.source_dir = source_dir | |||
self.entry_point = entry_point | |||
self.enable_cloudwatch_metrics = enable_cloudwatch_metrics | |||
if enable_cloudwatch_metrics: | |||
logging.warn('enable_cloudwatch_metrics is now deprecated and will be removed in the future.') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you use warnings.warn
instead, with a DeprecationWarning
?
https://docs.python.org/3/library/warnings.html#warnings.warn
There is a warning message for now, but it will be removed later.
eb1c5ac
to
9967d52
Compare
There is a warning message for now, but it will be removed later.
Add Chainer hyperparameter tuning notebook
There is a warning message for now, but it will be removed later.
*Issue #276
Description of changes:
Merge Checklist
Put an
x
in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your pull request.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.