-
Notifications
You must be signed in to change notification settings - Fork 1.2k
change: use image_uris.retrieve() for ModelMonitor default image #1765
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
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
021937b
change: use image_uris.retrieve() for ModelMonitor default image
6b0b83f
using the generic template for model monitor image retrieve
7d72166
Merge branch 'zwei' into model-monitoring
chuyang-deng 954c956
Merge branch 'zwei' into model-monitoring
laurenyu File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"scope": ["monitoring"], | ||
"versions": { | ||
"": { | ||
"registries": { | ||
"eu-north-1": "895015795356", | ||
"me-south-1": "607024016150", | ||
"ap-south-1": "126357580389", | ||
"us-east-2": "777275614652", | ||
"eu-west-1": "468650794304", | ||
"eu-central-1": "048819808253", | ||
"sa-east-1": "539772159869", | ||
"ap-east-1": "001633400207", | ||
"us-east-1": "156813124566", | ||
"ap-northeast-2": "709848358524", | ||
"eu-west-2": "749857270468", | ||
"eu-west-3": "680080141114", | ||
"ap-northeast-1": "574779866223", | ||
"us-west-2": "159807026194", | ||
"us-west-1": "890145073186", | ||
"ap-southeast-1": "245545462676", | ||
"ap-southeast-2": "563025443158", | ||
"ca-central-1": "536280801234", | ||
"cn-north-1": "453000072557", | ||
"cn-northwest-1": "453252182341" | ||
}, | ||
"repository": "sagemaker-model-monitor-analyzer" | ||
} | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"). You | ||
# may not use this file except in compliance with the License. A copy of | ||
# the License is located at | ||
# | ||
# http://aws.amazon.com/apache2.0/ | ||
# | ||
# or in the "license" file accompanying this file. This file is | ||
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF | ||
# ANY KIND, either express or implied. See the License for the specific | ||
# language governing permissions and limitations under the License. | ||
from __future__ import absolute_import | ||
|
||
from sagemaker import image_uris | ||
from tests.unit.sagemaker.image_uris import expected_uris, regions | ||
|
||
ACCOUNTS = { | ||
"eu-north-1": "895015795356", | ||
"me-south-1": "607024016150", | ||
"ap-south-1": "126357580389", | ||
"us-east-2": "777275614652", | ||
"eu-west-1": "468650794304", | ||
"eu-central-1": "048819808253", | ||
"sa-east-1": "539772159869", | ||
"ap-east-1": "001633400207", | ||
"us-east-1": "156813124566", | ||
"ap-northeast-2": "709848358524", | ||
"eu-west-2": "749857270468", | ||
"eu-west-3": "680080141114", | ||
"ap-northeast-1": "574779866223", | ||
"us-west-2": "159807026194", | ||
"us-west-1": "890145073186", | ||
"ap-southeast-1": "245545462676", | ||
"ap-southeast-2": "563025443158", | ||
"ca-central-1": "536280801234", | ||
"cn-north-1": "453000072557", | ||
"cn-northwest-1": "453252182341", | ||
} | ||
|
||
|
||
def test_model_monitor(): | ||
for region in regions.regions(): | ||
if region in ACCOUNTS.keys(): | ||
uri = image_uris.retrieve("model-monitor", region=region) | ||
|
||
expected = expected_uris.monitor_uri(ACCOUNTS[region], region) | ||
assert expected == uri |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
nitpicky nitpick: alphabetize the regions