Skip to content

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

Merged
merged 10 commits into from
Aug 17, 2018

Conversation

iquintero
Copy link
Contributor

@iquintero iquintero commented Jul 13, 2018

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.

  • I have read the CONTRIBUTING doc
  • I have added tests that prove my fix is effective or that my feature works (if appropriate)
  • I have updated the changelog with a description of my changes (if appropriate)
  • I have updated any necessary documentation (if appropriate)

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@iquintero iquintero requested a review from nadiaya July 13, 2018 23:42
@codecov-io
Copy link

codecov-io commented Jul 14, 2018

Codecov Report

Merging #292 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #292      +/-   ##
==========================================
+ Coverage   92.93%   92.93%   +<.01%     
==========================================
  Files          51       51              
  Lines        3552     3555       +3     
==========================================
+ Hits         3301     3304       +3     
  Misses        251      251
Impacted Files Coverage Δ
src/sagemaker/estimator.py 88.93% <100%> (+0.13%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4613f24...1d10cde. Read the comment docs.

@@ -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.')
Copy link
Contributor

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

Ignacio Quintero added 3 commits July 19, 2018 18:20
There is a warning message for now, but it will be removed later.
@iquintero iquintero force-pushed the remove_cw_metrics_arg branch from eb1c5ac to 9967d52 Compare July 20, 2018 01:21
andremoeller
andremoeller previously approved these changes Jul 20, 2018
andremoeller
andremoeller previously approved these changes Jul 23, 2018
@iquintero iquintero merged commit 80fa52e into aws:master Aug 17, 2018
pdasamzn pushed a commit to pdasamzn/sagemaker-python-sdk that referenced this pull request Nov 1, 2018
There is a warning message for now, but it will be removed later.
apacker pushed a commit to apacker/sagemaker-python-sdk that referenced this pull request Nov 15, 2018
Add Chainer hyperparameter tuning notebook
knakad added a commit to knakad/sagemaker-python-sdk that referenced this pull request Dec 4, 2019
knakad added a commit that referenced this pull request Dec 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants