-
Notifications
You must be signed in to change notification settings - Fork 1.2k
fix: use correct TF version in empty framework_version warning #756
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
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.
ship!
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
@@ -229,7 +229,7 @@ def __init__(self, training_steps=None, evaluation_steps=None, checkpoint_path=N | |||
**kwargs: Additional kwargs passed to the Framework constructor. | |||
""" | |||
if framework_version is None: | |||
LOGGER.warning(fw.empty_framework_version_warning(TF_VERSION, TF_VERSION)) | |||
LOGGER.warning(fw.empty_framework_version_warning(TF_VERSION, self.LATEST_VERSION)) |
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.
self.LATEST_VERSION looks wrong to me as LATEST_VERSION is not class variable, it is defined outside the init.
It should be just LATEST_VERSION
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.
it's defined in the class TensorFlow
:
sagemaker-python-sdk/src/sagemaker/tensorflow/estimator.py
Lines 170 to 174 in 42c7f30
class TensorFlow(Framework): | |
"""Handle end-to-end training and deployment of user-provided TensorFlow code.""" | |
__framework_name__ = 'tensorflow' | |
LATEST_VERSION = '1.12' |
LATEST_VERSION
(without self
) would work only if it is defined outside of the TensorFlow
class:
>>> class A:
... FOO = 1
... def __init__(self):
... print(FOO)
...
>>> A()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "<stdin>", line 4, in __init__
NameError: name 'FOO' is not defined
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.
Ok Thanks for the explanation.
@@ -229,7 +229,7 @@ def __init__(self, training_steps=None, evaluation_steps=None, checkpoint_path=N | |||
**kwargs: Additional kwargs passed to the Framework constructor. | |||
""" | |||
if framework_version is None: | |||
LOGGER.warning(fw.empty_framework_version_warning(TF_VERSION, TF_VERSION)) | |||
LOGGER.warning(fw.empty_framework_version_warning(TF_VERSION, self.LATEST_VERSION)) | |||
self.framework_version = framework_version or TF_VERSION |
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.
Still you haven't changed TF_VERSION to LATEST_VERSION
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.
The initial reported issue is that TF_VERSION is set '1.11' and LATEST_VERSION is set '1.12'. TF_VERSION should be replaced by LATEST_VERSION. Or TF_VERSION should be updated to 1.12
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.
I understand that the transition from having an updating default value to requiring framework_version
be explicitly defined could be better, and I apologize for the inconvenience. There's more explanation in #754 around this, and there'll be a separate PR for the documentation changes proposed in #754.
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
will make a separate PR to address the doc concerns raised in #754 |
* change: Clean up test resources to remove model files * fix: Change experiment enums to upper case * change: Upgrade boto3 and update test to validate mixed case name * fix: Update as per latest botocore release and backend change Co-authored-by: Dewen Qi <qidewen@amazon.com>
* change: Clean up test resources to remove model files * fix: Change experiment enums to upper case * change: Upgrade boto3 and update test to validate mixed case name * fix: Update as per latest botocore release and backend change Co-authored-by: Dewen Qi <qidewen@amazon.com>
* change: Clean up test resources to remove model files * fix: Change experiment enums to upper case * change: Upgrade boto3 and update test to validate mixed case name * fix: Update as per latest botocore release and backend change Co-authored-by: Dewen Qi <qidewen@amazon.com>
* change: Clean up test resources to remove model files * fix: Change experiment enums to upper case * change: Upgrade boto3 and update test to validate mixed case name * fix: Update as per latest botocore release and backend change Co-authored-by: Dewen Qi <qidewen@amazon.com>
* change: Clean up test resources to remove model files * fix: Change experiment enums to upper case * change: Upgrade boto3 and update test to validate mixed case name * fix: Update as per latest botocore release and backend change Co-authored-by: Dewen Qi <qidewen@amazon.com>
* feature: Add experiment plus Run class (#691) * feature: Add Experiment helper classes (#646) * feature: Add Experiment helper classes feature: Add helper class _RunEnvironment * change: Change sleep retry to backoff retry for get TC * minor fixes in backoff retry Co-authored-by: Dewen Qi <qidewen@amazon.com> * feature: Add helper classes and methods for Run class (#660) * feature: Add helper classes and methods for Run class * Add Parent class to address comment * fix docstyle check * Add arg docstrings in _helper Co-authored-by: Dewen Qi <qidewen@amazon.com> * feature: Add Experiment Run class (#651) Co-authored-by: Dewen Qi <qidewen@amazon.com> * change: Add integ tests for Run (#673) Co-authored-by: Dewen Qi <qidewen@amazon.com> * Update run log metric to use MetricsManager (#678) * Update run.log_metric to use _MetricsManager * fix several metrics issues * Add doc strings to metrics.py Co-authored-by: Dana Benson <danabens@amazon.com> Co-authored-by: Dana Benson <31262102+danabens@users.noreply.github.com> Co-authored-by: Dewen Qi <qidewen@amazon.com> Co-authored-by: Dewen Qi <qidewen@amazon.com> Co-authored-by: Dana Benson <danabens@amazon.com> Co-authored-by: Dana Benson <31262102+danabens@users.noreply.github.com> * change: Simplify exp plus integ test configuration (#694) Co-authored-by: Dewen Qi <qidewen@amazon.com> * feature: add RunName to expeirment_config (#696) * change: Update Run init and add Run load and _RunContext (#707) * change: Update Run init and add Run load Add exp name and run group name to load and address comments * Address nit comments Co-authored-by: Dewen Qi <qidewen@amazon.com> * fix: Fix run name uniqueness issue (#730) Co-authored-by: Dewen Qi <qidewen@amazon.com> * change: Update integ tests for Exp Plus M1 changes (#741) Co-authored-by: Dewen Qi <qidewen@amazon.com> * add metrics client to session object (#745) Co-authored-by: Dewen Qi <qidewen@amazon.com> Co-authored-by: Dana Benson <danabens@amazon.com> Co-authored-by: Dana Benson <31262102+danabens@users.noreply.github.com> Co-authored-by: qidewenwhen <32910701+qidewenwhen@users.noreply.github.com> * change: Add integ test for using Run in Transform Job (#749) Co-authored-by: Dewen Qi <qidewen@amazon.com> * Add async metrics sink (#739) Co-authored-by: Dewen Qi <qidewen@amazon.com> Co-authored-by: Dana Benson <danabens@amazon.com> Co-authored-by: Dana Benson <31262102+danabens@users.noreply.github.com> Co-authored-by: qidewenwhen <32910701+qidewenwhen@users.noreply.github.com> * use metrics client provided by session (#754) * fix flaky metrics test (#753) * change: Change Run.init and Run.load to constructor and module method respectively (#752) Co-authored-by: Dewen Qi <qidewen@amazon.com> * feature: Add latest metric service model (#757) Co-authored-by: Dewen Qi <qidewen@amazon.com> Co-authored-by: qidewenwhen <32910701+qidewenwhen@users.noreply.github.com> * fix: lowercase run name (#767) * Change: Minimize use of lower case tc name (#769) * change: Clean up test resources to remove model files (#756) * change: Clean up test resources to remove model files * fix: Change experiment enums to upper case * change: Upgrade boto3 and update test to validate mixed case name * fix: Update as per latest botocore release and backend change Co-authored-by: Dewen Qi <qidewen@amazon.com> * lowercase trial component name (#776) * change: Expose sagemaker experiment doc strings * fix: Fix exp name mixed case in issue Co-authored-by: Dewen Qi <qidewen@amazon.com> Co-authored-by: Dana Benson <danabens@amazon.com> Co-authored-by: Dana Benson <31262102+danabens@users.noreply.github.com> Co-authored-by: Yifei Zhu <66866419+yzhu0@users.noreply.github.com>
* feature: Add experiment plus Run class (aws#691) * feature: Add Experiment helper classes (aws#646) * feature: Add Experiment helper classes feature: Add helper class _RunEnvironment * change: Change sleep retry to backoff retry for get TC * minor fixes in backoff retry Co-authored-by: Dewen Qi <qidewen@amazon.com> * feature: Add helper classes and methods for Run class (aws#660) * feature: Add helper classes and methods for Run class * Add Parent class to address comment * fix docstyle check * Add arg docstrings in _helper Co-authored-by: Dewen Qi <qidewen@amazon.com> * feature: Add Experiment Run class (aws#651) Co-authored-by: Dewen Qi <qidewen@amazon.com> * change: Add integ tests for Run (aws#673) Co-authored-by: Dewen Qi <qidewen@amazon.com> * Update run log metric to use MetricsManager (aws#678) * Update run.log_metric to use _MetricsManager * fix several metrics issues * Add doc strings to metrics.py Co-authored-by: Dana Benson <danabens@amazon.com> Co-authored-by: Dana Benson <31262102+danabens@users.noreply.github.com> Co-authored-by: Dewen Qi <qidewen@amazon.com> Co-authored-by: Dewen Qi <qidewen@amazon.com> Co-authored-by: Dana Benson <danabens@amazon.com> Co-authored-by: Dana Benson <31262102+danabens@users.noreply.github.com> * change: Simplify exp plus integ test configuration (aws#694) Co-authored-by: Dewen Qi <qidewen@amazon.com> * feature: add RunName to expeirment_config (aws#696) * change: Update Run init and add Run load and _RunContext (aws#707) * change: Update Run init and add Run load Add exp name and run group name to load and address comments * Address nit comments Co-authored-by: Dewen Qi <qidewen@amazon.com> * fix: Fix run name uniqueness issue (aws#730) Co-authored-by: Dewen Qi <qidewen@amazon.com> * change: Update integ tests for Exp Plus M1 changes (aws#741) Co-authored-by: Dewen Qi <qidewen@amazon.com> * add metrics client to session object (aws#745) Co-authored-by: Dewen Qi <qidewen@amazon.com> Co-authored-by: Dana Benson <danabens@amazon.com> Co-authored-by: Dana Benson <31262102+danabens@users.noreply.github.com> Co-authored-by: qidewenwhen <32910701+qidewenwhen@users.noreply.github.com> * change: Add integ test for using Run in Transform Job (aws#749) Co-authored-by: Dewen Qi <qidewen@amazon.com> * Add async metrics sink (aws#739) Co-authored-by: Dewen Qi <qidewen@amazon.com> Co-authored-by: Dana Benson <danabens@amazon.com> Co-authored-by: Dana Benson <31262102+danabens@users.noreply.github.com> Co-authored-by: qidewenwhen <32910701+qidewenwhen@users.noreply.github.com> * use metrics client provided by session (aws#754) * fix flaky metrics test (aws#753) * change: Change Run.init and Run.load to constructor and module method respectively (aws#752) Co-authored-by: Dewen Qi <qidewen@amazon.com> * feature: Add latest metric service model (aws#757) Co-authored-by: Dewen Qi <qidewen@amazon.com> Co-authored-by: qidewenwhen <32910701+qidewenwhen@users.noreply.github.com> * fix: lowercase run name (aws#767) * Change: Minimize use of lower case tc name (aws#769) * change: Clean up test resources to remove model files (aws#756) * change: Clean up test resources to remove model files * fix: Change experiment enums to upper case * change: Upgrade boto3 and update test to validate mixed case name * fix: Update as per latest botocore release and backend change Co-authored-by: Dewen Qi <qidewen@amazon.com> * lowercase trial component name (aws#776) * change: Expose sagemaker experiment doc strings * fix: Fix exp name mixed case in issue Co-authored-by: Dewen Qi <qidewen@amazon.com> Co-authored-by: Dana Benson <danabens@amazon.com> Co-authored-by: Dana Benson <31262102+danabens@users.noreply.github.com> Co-authored-by: Yifei Zhu <66866419+yzhu0@users.noreply.github.com>
* feature: Add experiment plus Run class (aws#691) * feature: Add Experiment helper classes (aws#646) * feature: Add Experiment helper classes feature: Add helper class _RunEnvironment * change: Change sleep retry to backoff retry for get TC * minor fixes in backoff retry Co-authored-by: Dewen Qi <qidewen@amazon.com> * feature: Add helper classes and methods for Run class (aws#660) * feature: Add helper classes and methods for Run class * Add Parent class to address comment * fix docstyle check * Add arg docstrings in _helper Co-authored-by: Dewen Qi <qidewen@amazon.com> * feature: Add Experiment Run class (aws#651) Co-authored-by: Dewen Qi <qidewen@amazon.com> * change: Add integ tests for Run (aws#673) Co-authored-by: Dewen Qi <qidewen@amazon.com> * Update run log metric to use MetricsManager (aws#678) * Update run.log_metric to use _MetricsManager * fix several metrics issues * Add doc strings to metrics.py Co-authored-by: Dana Benson <danabens@amazon.com> Co-authored-by: Dana Benson <31262102+danabens@users.noreply.github.com> Co-authored-by: Dewen Qi <qidewen@amazon.com> Co-authored-by: Dewen Qi <qidewen@amazon.com> Co-authored-by: Dana Benson <danabens@amazon.com> Co-authored-by: Dana Benson <31262102+danabens@users.noreply.github.com> * change: Simplify exp plus integ test configuration (aws#694) Co-authored-by: Dewen Qi <qidewen@amazon.com> * feature: add RunName to expeirment_config (aws#696) * change: Update Run init and add Run load and _RunContext (aws#707) * change: Update Run init and add Run load Add exp name and run group name to load and address comments * Address nit comments Co-authored-by: Dewen Qi <qidewen@amazon.com> * fix: Fix run name uniqueness issue (aws#730) Co-authored-by: Dewen Qi <qidewen@amazon.com> * change: Update integ tests for Exp Plus M1 changes (aws#741) Co-authored-by: Dewen Qi <qidewen@amazon.com> * add metrics client to session object (aws#745) Co-authored-by: Dewen Qi <qidewen@amazon.com> Co-authored-by: Dana Benson <danabens@amazon.com> Co-authored-by: Dana Benson <31262102+danabens@users.noreply.github.com> Co-authored-by: qidewenwhen <32910701+qidewenwhen@users.noreply.github.com> * change: Add integ test for using Run in Transform Job (aws#749) Co-authored-by: Dewen Qi <qidewen@amazon.com> * Add async metrics sink (aws#739) Co-authored-by: Dewen Qi <qidewen@amazon.com> Co-authored-by: Dana Benson <danabens@amazon.com> Co-authored-by: Dana Benson <31262102+danabens@users.noreply.github.com> Co-authored-by: qidewenwhen <32910701+qidewenwhen@users.noreply.github.com> * use metrics client provided by session (aws#754) * fix flaky metrics test (aws#753) * change: Change Run.init and Run.load to constructor and module method respectively (aws#752) Co-authored-by: Dewen Qi <qidewen@amazon.com> * feature: Add latest metric service model (aws#757) Co-authored-by: Dewen Qi <qidewen@amazon.com> Co-authored-by: qidewenwhen <32910701+qidewenwhen@users.noreply.github.com> * fix: lowercase run name (aws#767) * Change: Minimize use of lower case tc name (aws#769) * change: Clean up test resources to remove model files (aws#756) * change: Clean up test resources to remove model files * fix: Change experiment enums to upper case * change: Upgrade boto3 and update test to validate mixed case name * fix: Update as per latest botocore release and backend change Co-authored-by: Dewen Qi <qidewen@amazon.com> * lowercase trial component name (aws#776) * change: Expose sagemaker experiment doc strings * fix: Fix exp name mixed case in issue Co-authored-by: Dewen Qi <qidewen@amazon.com> Co-authored-by: Dana Benson <danabens@amazon.com> Co-authored-by: Dana Benson <31262102+danabens@users.noreply.github.com> Co-authored-by: Yifei Zhu <66866419+yzhu0@users.noreply.github.com>
* feature: Add experiment plus Run class (#691) * feature: Add Experiment helper classes (#646) * feature: Add Experiment helper classes feature: Add helper class _RunEnvironment * change: Change sleep retry to backoff retry for get TC * minor fixes in backoff retry Co-authored-by: Dewen Qi <qidewen@amazon.com> * feature: Add helper classes and methods for Run class (#660) * feature: Add helper classes and methods for Run class * Add Parent class to address comment * fix docstyle check * Add arg docstrings in _helper Co-authored-by: Dewen Qi <qidewen@amazon.com> * feature: Add Experiment Run class (#651) Co-authored-by: Dewen Qi <qidewen@amazon.com> * change: Add integ tests for Run (#673) Co-authored-by: Dewen Qi <qidewen@amazon.com> * Update run log metric to use MetricsManager (#678) * Update run.log_metric to use _MetricsManager * fix several metrics issues * Add doc strings to metrics.py Co-authored-by: Dana Benson <danabens@amazon.com> Co-authored-by: Dana Benson <31262102+danabens@users.noreply.github.com> Co-authored-by: Dewen Qi <qidewen@amazon.com> Co-authored-by: Dewen Qi <qidewen@amazon.com> Co-authored-by: Dana Benson <danabens@amazon.com> Co-authored-by: Dana Benson <31262102+danabens@users.noreply.github.com> * change: Simplify exp plus integ test configuration (#694) Co-authored-by: Dewen Qi <qidewen@amazon.com> * feature: add RunName to expeirment_config (#696) * change: Update Run init and add Run load and _RunContext (#707) * change: Update Run init and add Run load Add exp name and run group name to load and address comments * Address nit comments Co-authored-by: Dewen Qi <qidewen@amazon.com> * fix: Fix run name uniqueness issue (#730) Co-authored-by: Dewen Qi <qidewen@amazon.com> * change: Update integ tests for Exp Plus M1 changes (#741) Co-authored-by: Dewen Qi <qidewen@amazon.com> * add metrics client to session object (#745) Co-authored-by: Dewen Qi <qidewen@amazon.com> Co-authored-by: Dana Benson <danabens@amazon.com> Co-authored-by: Dana Benson <31262102+danabens@users.noreply.github.com> Co-authored-by: qidewenwhen <32910701+qidewenwhen@users.noreply.github.com> * change: Add integ test for using Run in Transform Job (#749) Co-authored-by: Dewen Qi <qidewen@amazon.com> * Add async metrics sink (#739) Co-authored-by: Dewen Qi <qidewen@amazon.com> Co-authored-by: Dana Benson <danabens@amazon.com> Co-authored-by: Dana Benson <31262102+danabens@users.noreply.github.com> Co-authored-by: qidewenwhen <32910701+qidewenwhen@users.noreply.github.com> * use metrics client provided by session (#754) * fix flaky metrics test (#753) * change: Change Run.init and Run.load to constructor and module method respectively (#752) Co-authored-by: Dewen Qi <qidewen@amazon.com> * feature: Add latest metric service model (#757) Co-authored-by: Dewen Qi <qidewen@amazon.com> Co-authored-by: qidewenwhen <32910701+qidewenwhen@users.noreply.github.com> * fix: lowercase run name (#767) * Change: Minimize use of lower case tc name (#769) * change: Clean up test resources to remove model files (#756) * change: Clean up test resources to remove model files * fix: Change experiment enums to upper case * change: Upgrade boto3 and update test to validate mixed case name * fix: Update as per latest botocore release and backend change Co-authored-by: Dewen Qi <qidewen@amazon.com> * lowercase trial component name (#776) * change: Expose sagemaker experiment doc strings * fix: Fix exp name mixed case in issue Co-authored-by: Dewen Qi <qidewen@amazon.com> Co-authored-by: Dana Benson <danabens@amazon.com> Co-authored-by: Dana Benson <31262102+danabens@users.noreply.github.com> Co-authored-by: Yifei Zhu <66866419+yzhu0@users.noreply.github.com>
* feature: Add experiment plus Run class (aws#691) * feature: Add Experiment helper classes (aws#646) * feature: Add Experiment helper classes feature: Add helper class _RunEnvironment * change: Change sleep retry to backoff retry for get TC * minor fixes in backoff retry Co-authored-by: Dewen Qi <qidewen@amazon.com> * feature: Add helper classes and methods for Run class (aws#660) * feature: Add helper classes and methods for Run class * Add Parent class to address comment * fix docstyle check * Add arg docstrings in _helper Co-authored-by: Dewen Qi <qidewen@amazon.com> * feature: Add Experiment Run class (aws#651) Co-authored-by: Dewen Qi <qidewen@amazon.com> * change: Add integ tests for Run (aws#673) Co-authored-by: Dewen Qi <qidewen@amazon.com> * Update run log metric to use MetricsManager (aws#678) * Update run.log_metric to use _MetricsManager * fix several metrics issues * Add doc strings to metrics.py Co-authored-by: Dana Benson <danabens@amazon.com> Co-authored-by: Dana Benson <31262102+danabens@users.noreply.github.com> Co-authored-by: Dewen Qi <qidewen@amazon.com> Co-authored-by: Dewen Qi <qidewen@amazon.com> Co-authored-by: Dana Benson <danabens@amazon.com> Co-authored-by: Dana Benson <31262102+danabens@users.noreply.github.com> * change: Simplify exp plus integ test configuration (aws#694) Co-authored-by: Dewen Qi <qidewen@amazon.com> * feature: add RunName to expeirment_config (aws#696) * change: Update Run init and add Run load and _RunContext (aws#707) * change: Update Run init and add Run load Add exp name and run group name to load and address comments * Address nit comments Co-authored-by: Dewen Qi <qidewen@amazon.com> * fix: Fix run name uniqueness issue (aws#730) Co-authored-by: Dewen Qi <qidewen@amazon.com> * change: Update integ tests for Exp Plus M1 changes (aws#741) Co-authored-by: Dewen Qi <qidewen@amazon.com> * add metrics client to session object (aws#745) Co-authored-by: Dewen Qi <qidewen@amazon.com> Co-authored-by: Dana Benson <danabens@amazon.com> Co-authored-by: Dana Benson <31262102+danabens@users.noreply.github.com> Co-authored-by: qidewenwhen <32910701+qidewenwhen@users.noreply.github.com> * change: Add integ test for using Run in Transform Job (aws#749) Co-authored-by: Dewen Qi <qidewen@amazon.com> * Add async metrics sink (aws#739) Co-authored-by: Dewen Qi <qidewen@amazon.com> Co-authored-by: Dana Benson <danabens@amazon.com> Co-authored-by: Dana Benson <31262102+danabens@users.noreply.github.com> Co-authored-by: qidewenwhen <32910701+qidewenwhen@users.noreply.github.com> * use metrics client provided by session (aws#754) * fix flaky metrics test (aws#753) * change: Change Run.init and Run.load to constructor and module method respectively (aws#752) Co-authored-by: Dewen Qi <qidewen@amazon.com> * feature: Add latest metric service model (aws#757) Co-authored-by: Dewen Qi <qidewen@amazon.com> Co-authored-by: qidewenwhen <32910701+qidewenwhen@users.noreply.github.com> * fix: lowercase run name (aws#767) * Change: Minimize use of lower case tc name (aws#769) * change: Clean up test resources to remove model files (aws#756) * change: Clean up test resources to remove model files * fix: Change experiment enums to upper case * change: Upgrade boto3 and update test to validate mixed case name * fix: Update as per latest botocore release and backend change Co-authored-by: Dewen Qi <qidewen@amazon.com> * lowercase trial component name (aws#776) * change: Expose sagemaker experiment doc strings * fix: Fix exp name mixed case in issue Co-authored-by: Dewen Qi <qidewen@amazon.com> Co-authored-by: Dana Benson <danabens@amazon.com> Co-authored-by: Dana Benson <31262102+danabens@users.noreply.github.com> Co-authored-by: Yifei Zhu <66866419+yzhu0@users.noreply.github.com>
* feature: Add experiment plus Run class (aws#691) * feature: Add Experiment helper classes (aws#646) * feature: Add Experiment helper classes feature: Add helper class _RunEnvironment * change: Change sleep retry to backoff retry for get TC * minor fixes in backoff retry Co-authored-by: Dewen Qi <qidewen@amazon.com> * feature: Add helper classes and methods for Run class (aws#660) * feature: Add helper classes and methods for Run class * Add Parent class to address comment * fix docstyle check * Add arg docstrings in _helper Co-authored-by: Dewen Qi <qidewen@amazon.com> * feature: Add Experiment Run class (aws#651) Co-authored-by: Dewen Qi <qidewen@amazon.com> * change: Add integ tests for Run (aws#673) Co-authored-by: Dewen Qi <qidewen@amazon.com> * Update run log metric to use MetricsManager (aws#678) * Update run.log_metric to use _MetricsManager * fix several metrics issues * Add doc strings to metrics.py Co-authored-by: Dana Benson <danabens@amazon.com> Co-authored-by: Dana Benson <31262102+danabens@users.noreply.github.com> Co-authored-by: Dewen Qi <qidewen@amazon.com> Co-authored-by: Dewen Qi <qidewen@amazon.com> Co-authored-by: Dana Benson <danabens@amazon.com> Co-authored-by: Dana Benson <31262102+danabens@users.noreply.github.com> * change: Simplify exp plus integ test configuration (aws#694) Co-authored-by: Dewen Qi <qidewen@amazon.com> * feature: add RunName to expeirment_config (aws#696) * change: Update Run init and add Run load and _RunContext (aws#707) * change: Update Run init and add Run load Add exp name and run group name to load and address comments * Address nit comments Co-authored-by: Dewen Qi <qidewen@amazon.com> * fix: Fix run name uniqueness issue (aws#730) Co-authored-by: Dewen Qi <qidewen@amazon.com> * change: Update integ tests for Exp Plus M1 changes (aws#741) Co-authored-by: Dewen Qi <qidewen@amazon.com> * add metrics client to session object (aws#745) Co-authored-by: Dewen Qi <qidewen@amazon.com> Co-authored-by: Dana Benson <danabens@amazon.com> Co-authored-by: Dana Benson <31262102+danabens@users.noreply.github.com> Co-authored-by: qidewenwhen <32910701+qidewenwhen@users.noreply.github.com> * change: Add integ test for using Run in Transform Job (aws#749) Co-authored-by: Dewen Qi <qidewen@amazon.com> * Add async metrics sink (aws#739) Co-authored-by: Dewen Qi <qidewen@amazon.com> Co-authored-by: Dana Benson <danabens@amazon.com> Co-authored-by: Dana Benson <31262102+danabens@users.noreply.github.com> Co-authored-by: qidewenwhen <32910701+qidewenwhen@users.noreply.github.com> * use metrics client provided by session (aws#754) * fix flaky metrics test (aws#753) * change: Change Run.init and Run.load to constructor and module method respectively (aws#752) Co-authored-by: Dewen Qi <qidewen@amazon.com> * feature: Add latest metric service model (aws#757) Co-authored-by: Dewen Qi <qidewen@amazon.com> Co-authored-by: qidewenwhen <32910701+qidewenwhen@users.noreply.github.com> * fix: lowercase run name (aws#767) * Change: Minimize use of lower case tc name (aws#769) * change: Clean up test resources to remove model files (aws#756) * change: Clean up test resources to remove model files * fix: Change experiment enums to upper case * change: Upgrade boto3 and update test to validate mixed case name * fix: Update as per latest botocore release and backend change Co-authored-by: Dewen Qi <qidewen@amazon.com> * lowercase trial component name (aws#776) * change: Expose sagemaker experiment doc strings * fix: Fix exp name mixed case in issue Co-authored-by: Dewen Qi <qidewen@amazon.com> Co-authored-by: Dana Benson <danabens@amazon.com> Co-authored-by: Dana Benson <31262102+danabens@users.noreply.github.com> Co-authored-by: Yifei Zhu <66866419+yzhu0@users.noreply.github.com>
* feature: Add experiment plus Run class (aws#691) * feature: Add Experiment helper classes (aws#646) * feature: Add Experiment helper classes feature: Add helper class _RunEnvironment * change: Change sleep retry to backoff retry for get TC * minor fixes in backoff retry Co-authored-by: Dewen Qi <qidewen@amazon.com> * feature: Add helper classes and methods for Run class (aws#660) * feature: Add helper classes and methods for Run class * Add Parent class to address comment * fix docstyle check * Add arg docstrings in _helper Co-authored-by: Dewen Qi <qidewen@amazon.com> * feature: Add Experiment Run class (aws#651) Co-authored-by: Dewen Qi <qidewen@amazon.com> * change: Add integ tests for Run (aws#673) Co-authored-by: Dewen Qi <qidewen@amazon.com> * Update run log metric to use MetricsManager (aws#678) * Update run.log_metric to use _MetricsManager * fix several metrics issues * Add doc strings to metrics.py Co-authored-by: Dana Benson <danabens@amazon.com> Co-authored-by: Dana Benson <31262102+danabens@users.noreply.github.com> Co-authored-by: Dewen Qi <qidewen@amazon.com> Co-authored-by: Dewen Qi <qidewen@amazon.com> Co-authored-by: Dana Benson <danabens@amazon.com> Co-authored-by: Dana Benson <31262102+danabens@users.noreply.github.com> * change: Simplify exp plus integ test configuration (aws#694) Co-authored-by: Dewen Qi <qidewen@amazon.com> * feature: add RunName to expeirment_config (aws#696) * change: Update Run init and add Run load and _RunContext (aws#707) * change: Update Run init and add Run load Add exp name and run group name to load and address comments * Address nit comments Co-authored-by: Dewen Qi <qidewen@amazon.com> * fix: Fix run name uniqueness issue (aws#730) Co-authored-by: Dewen Qi <qidewen@amazon.com> * change: Update integ tests for Exp Plus M1 changes (aws#741) Co-authored-by: Dewen Qi <qidewen@amazon.com> * add metrics client to session object (aws#745) Co-authored-by: Dewen Qi <qidewen@amazon.com> Co-authored-by: Dana Benson <danabens@amazon.com> Co-authored-by: Dana Benson <31262102+danabens@users.noreply.github.com> Co-authored-by: qidewenwhen <32910701+qidewenwhen@users.noreply.github.com> * change: Add integ test for using Run in Transform Job (aws#749) Co-authored-by: Dewen Qi <qidewen@amazon.com> * Add async metrics sink (aws#739) Co-authored-by: Dewen Qi <qidewen@amazon.com> Co-authored-by: Dana Benson <danabens@amazon.com> Co-authored-by: Dana Benson <31262102+danabens@users.noreply.github.com> Co-authored-by: qidewenwhen <32910701+qidewenwhen@users.noreply.github.com> * use metrics client provided by session (aws#754) * fix flaky metrics test (aws#753) * change: Change Run.init and Run.load to constructor and module method respectively (aws#752) Co-authored-by: Dewen Qi <qidewen@amazon.com> * feature: Add latest metric service model (aws#757) Co-authored-by: Dewen Qi <qidewen@amazon.com> Co-authored-by: qidewenwhen <32910701+qidewenwhen@users.noreply.github.com> * fix: lowercase run name (aws#767) * Change: Minimize use of lower case tc name (aws#769) * change: Clean up test resources to remove model files (aws#756) * change: Clean up test resources to remove model files * fix: Change experiment enums to upper case * change: Upgrade boto3 and update test to validate mixed case name * fix: Update as per latest botocore release and backend change Co-authored-by: Dewen Qi <qidewen@amazon.com> * lowercase trial component name (aws#776) * change: Expose sagemaker experiment doc strings * fix: Fix exp name mixed case in issue Co-authored-by: Dewen Qi <qidewen@amazon.com> Co-authored-by: Dana Benson <danabens@amazon.com> Co-authored-by: Dana Benson <31262102+danabens@users.noreply.github.com> Co-authored-by: Yifei Zhu <66866419+yzhu0@users.noreply.github.com>
Description of changes:
Addresses #754 (
LATEST_VERSION
wasn't being used in the TensorFlow estimator)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.