-
Notifications
You must be signed in to change notification settings - Fork 1.2k
fix: fix tags in deploy call for generic estimators #1146
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
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 |
kms_key (str): The ARN of the KMS key that is used to encrypt the | ||
data on the storage volume attached to the instance hosting the | ||
endpoint. | ||
data_capture_config (sagemaker.model_monitor.DataCaptureConfig): Specifies | ||
configuration related to Endpoint data capture for use with | ||
Amazon SageMaker Model Monitoring. Default: None. | ||
tags(List[dict[str, str]]): Optional. The list of tags to attach to this specific | ||
endpoint. Example: | ||
>>> tags = [{'Key': 'tagname', 'Value': 'tagvalue'}] |
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.
do you need newlines around the ">>>" line for the formatting to work out?
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.
Looks like the >>> doesn't work as intended as shown here: https://sagemaker.readthedocs.io/en/v1.45.0/analytics.html#sagemaker.analytics.HyperparameterTuningJobAnalytics.tuning_ranges
Will fix in another PR D:
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 |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Issue #, if available:
#1120
Originally, the
estimator's
deploy
function supported tags by utilizing kwargs. This would run into problems depending on if each inheritedestimator's
create_model
function was able to handle kwargs in the function. This causes problems as reported for the user above, who is using tags for a generic estimator class.Description of changes:
Make tags an explicit parameter in the Estimator's
deploy
function, similar to the Model'sdeploy
function. This will end up not using kwargs to pass tags and not forcecreate_model
function to handle it.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.