Skip to content

Commit 9cac6be

Browse files
authored
Merge branch 'master' into master
2 parents 3d04b95 + 82849f1 commit 9cac6be

File tree

298 files changed

+26574
-1739
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

298 files changed

+26574
-1739
lines changed

.flake8

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
[flake8]
22
application_import_names = sagemaker, tests
33
import-order-style = google
4+
per-file-ignores =
5+
tests/unit/test_tuner.py: F405

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,23 @@
22

33
*Description of changes:*
44

5+
*Testing done:*
6+
57
## Merge Checklist
68

79
_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._
810

11+
#### General
12+
913
- [ ] I have read the [CONTRIBUTING](https://github.com/aws/sagemaker-python-sdk/blob/master/CONTRIBUTING.md) doc
1014
- [ ] I used the commit message format described in [CONTRIBUTING](https://github.com/aws/sagemaker-python-sdk/blob/master/CONTRIBUTING.md#committing-your-change)
15+
- [ ] I have used the regional endpoint when creating S3 and/or STS clients (if appropriate)
16+
- [ ] I have updated any necessary documentation, including [READMEs](https://github.com/aws/sagemaker-python-sdk/blob/master/README.rst) and [API docs](https://github.com/aws/sagemaker-python-sdk/tree/master/doc) (if appropriate)
17+
18+
#### Tests
19+
1120
- [ ] I have added tests that prove my fix is effective or that my feature works (if appropriate)
12-
- [ ] I have updated any necessary [documentation](https://github.com/aws/sagemaker-python-sdk/blob/master/README.rst) (if appropriate)
21+
- [ ] I have checked that my tests are not configured for a specific region or account (if appropriate)
22+
- [ ] I have used [`unique_name_from_base`](https://github.com/aws/sagemaker-python-sdk/blob/master/src/sagemaker/utils.py#L77) to create resource names in integ tests (if appropriate)
1323

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

CHANGELOG.md

Lines changed: 258 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,263 @@
11
# Changelog
22

3+
## v1.50.3 (2020-01-15)
4+
5+
### Bug fixes and other changes
6+
7+
* ignore private Automatic Model Tuning hyperparameter when attaching AlgorithmEstimator
8+
9+
### Documentation changes
10+
11+
* add Debugger API docs
12+
13+
## v1.50.2 (2020-01-14)
14+
15+
### Bug fixes and other changes
16+
17+
* add tests to quick canary
18+
* honor 'wait' flag when updating endpoint
19+
* add default framework version warning message in Model classes
20+
* Adding role arn explanation for sagemaker role
21+
* allow predictor to be returned from AutoML.deploy()
22+
* add PR checklist item about unique_name_from_base()
23+
* use unique_name_from_base for multi-algo tuning test
24+
* update copyright year in license header
25+
26+
### Documentation changes
27+
28+
* add version requirement for using "requirement.txt" when serving a PyTorch model
29+
* add SageMaker Debugger overview
30+
* clarify requirements.txt usage for Chainer, MXNet, and Scikit-learn
31+
* change "associate" to "create" for OpenID connector
32+
* fix typo and improve clarity on installing packages via "requirements.txt"
33+
34+
## v1.50.1 (2020-01-07)
35+
36+
### Bug fixes and other changes
37+
38+
* fix PyTorchModel deployment crash on Windows
39+
* make PyTorch empty framework_version warning include the latest PyTorch version
40+
41+
## v1.50.0 (2020-01-06)
42+
43+
### Features
44+
45+
* allow disabling debugger_hook_config
46+
47+
### Bug fixes and other changes
48+
49+
* relax urllib3 and requests restrictions.
50+
* Add uri as return statement for upload_string_as_file_body
51+
* refactor logic in fw_utils and fill in docstrings
52+
* increase poll from 5 to 30 for DescribeEndpoint lambda.
53+
* fix test_auto_ml tests for regions without ml.c4.xlarge hosts.
54+
* fix test_processing for regions without m4.xlarge instances.
55+
* reduce test's describe frequency to eliminate throttling error.
56+
* Increase number of retries when describing an endpoint since tf-2.0 has larger images and takes longer to start.
57+
58+
### Documentation changes
59+
60+
* generalize Model Monitor documentation from SageMaker Studio tutorial
61+
62+
## v1.49.0 (2019-12-23)
63+
64+
### Features
65+
66+
* Add support for TF-2.0.0.
67+
* create ProcessingJob from ARN and from name
68+
69+
### Bug fixes and other changes
70+
71+
* Make tf tests tf-1.15 and tf-2.0 compatible.
72+
73+
### Documentation changes
74+
75+
* add Model Monitor documentation
76+
* add link to Amazon algorithm estimator parent class to clarify **kwargs
77+
78+
## v1.48.1 (2019-12-18)
79+
80+
### Bug fixes and other changes
81+
82+
* use name_from_base in auto_ml.py but unique_name_from_base in tests.
83+
* make test's custom bucket include region and account name.
84+
* add Keras to the list of Neo-supported frameworks
85+
86+
### Documentation changes
87+
88+
* add link to parent classes to clarify **kwargs
89+
* add link to framework-related parent classes to clarify **kwargs
90+
91+
## v1.48.0 (2019-12-17)
92+
93+
### Features
94+
95+
* allow setting the default bucket in Session
96+
97+
### Bug fixes and other changes
98+
99+
* set integration test parallelization to 512
100+
* shorten base job name to avoid collision
101+
* multi model integration test to create ECR repo with unique names to allow independent parallel executions
102+
103+
## v1.47.1 (2019-12-16)
104+
105+
### Bug fixes and other changes
106+
107+
* Revert "feature: allow setting the default bucket in Session (#1168)"
108+
109+
### Documentation changes
110+
111+
* add AutoML README
112+
* add missing classes to API docs
113+
114+
## v1.47.0 (2019-12-13)
115+
116+
### Features
117+
118+
* allow setting the default bucket in Session
119+
120+
### Bug fixes and other changes
121+
122+
* allow processing users to run code in s3
123+
124+
## v1.46.0 (2019-12-12)
125+
126+
### Features
127+
128+
* support Multi-Model endpoints
129+
130+
### Bug fixes and other changes
131+
132+
* update PR template with items about tests, regional endpoints, and API docs
133+
134+
## v1.45.2 (2019-12-10)
135+
136+
### Bug fixes and other changes
137+
138+
* modify schedule cleanup to abide by latest validations
139+
* lower log level when getting execution role from a SageMaker Notebook
140+
* Fix "ValueError: too many values to unpack (expected 2)" is occurred in windows local mode
141+
* allow ModelMonitor and Processor to take IAM role names (in addition to ARNs)
142+
143+
### Documentation changes
144+
145+
* mention that the entry_point needs to be named inference.py for tfs
146+
147+
## v1.45.1 (2019-12-06)
148+
149+
### Bug fixes and other changes
150+
151+
* create auto ml job for tests that based on existing job
152+
* fixing py2 support for latest TF version
153+
* fix tags in deploy call for generic estimators
154+
* make multi algo integration test assertion less specific
155+
156+
## v1.45.0 (2019-12-04)
157+
158+
### Features
159+
160+
* add support for TF 1.15.0, PyTorch 1.3.1 and MXNet 1.6rc0.
161+
* add S3Downloader.list(s3_uri) functionality
162+
* introduce SageMaker AutoML
163+
* wrap up Processing feature
164+
* add a few minor features to Model Monitoring
165+
* add enable_sagemaker_metrics flag
166+
* Amazon SageMaker Model Monitoring
167+
* add utils.generate_tensorboard_url function
168+
* Add jobs list to Estimator
169+
170+
### Bug fixes and other changes
171+
172+
* remove unnecessary boto model files
173+
* update boto version to >=1.10.32
174+
* correct Debugger tests
175+
* fix bug in monitor.attach() for empty network_config
176+
* Import smdebug_rulesconfig from PyPI
177+
* bump the version to 1.45.0 (publishes 1.46.0) for re:Invent-2019
178+
* correct AutoML imports and expose current_job_name
179+
* correct Model Monitor eu-west-3 image name.
180+
* use DLC prod images
181+
* remove unused env variable for Model Monitoring
182+
* aws model update
183+
* rename get_debugger_artifacts to latest_job_debugger_artifacts
184+
* remove retain flag from update_endpoint
185+
* correct S3Downloader behavior
186+
* consume smdebug_ruleconfig .whl for ITs
187+
* disable DebuggerHook and Rules for TF distributions
188+
* incorporate smdebug_ruleconfigs pkg until availability in PyPI
189+
* remove pre/post scripts per latest validations
190+
* update rules_config .whl
191+
* remove py_version from SKLearnProcessor
192+
* AutoML improvements
193+
* stop overwriting custom rules volume and type
194+
* fix tests due to latest server-side validations
195+
* Minor processing changes
196+
* minor processing changes (instance_count + docs)
197+
* update api to latest
198+
* Eureka master
199+
* Add support for xgboost version 0.90-2
200+
* SageMaker Debugger revision
201+
* Add support for SageMaker Debugger [WIP]
202+
* Fix linear learner crash when num_class is string and predict type is `multiclass_classifier`
203+
* Additional Processing Jobs integration tests
204+
* Migrate to updated Processing Jobs API
205+
* Processing Jobs revision round 2
206+
* Processing Jobs revision
207+
* remove instance_pools parameter from tuner
208+
* Multi-Algorithm Hyperparameter Tuning Support
209+
* Import Processors in init files
210+
* Remove SparkML Processors and corresponding unit tests
211+
* Processing Jobs Python SDK support
212+
213+
## v1.44.4 (2019-12-02)
214+
215+
### Bug fixes and other changes
216+
217+
* Documentation for Amazon Sagemaker Operators
218+
219+
## v1.44.3 (2019-11-26)
220+
221+
### Bug fixes and other changes
222+
223+
* move sagemaker config loading to LocalSession since it is only used for local code support.
224+
225+
### Documentation changes
226+
227+
* fix docstring wording.
228+
229+
## v1.44.2 (2019-11-25)
230+
231+
### Bug fixes and other changes
232+
233+
* add pyyaml dependencies to the required list.
234+
235+
### Documentation changes
236+
237+
* Correct info on code_location parameter
238+
239+
## v1.44.1 (2019-11-21)
240+
241+
### Bug fixes and other changes
242+
243+
* Remove local mode dependencies from required.
244+
245+
## v1.44.0 (2019-11-21)
246+
247+
### Features
248+
249+
* separating sagemaker dependencies into more use case specific installable components.
250+
251+
### Bug fixes and other changes
252+
253+
* remove docker-compose as a required dependency.
254+
255+
## v1.43.5 (2019-11-18)
256+
257+
### Bug fixes and other changes
258+
259+
* remove red from possible colors when streaming logs
260+
3261
## v1.43.4.post1 (2019-10-29)
4262

5263
### Documentation changes

README.rst

Lines changed: 46 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,11 @@ Table of Contents
6161
17. `Secure Training and Inference with VPC <https://sagemaker.readthedocs.io/en/stable/overview.html#secure-training-and-inference-with-vpc>`__
6262
18. `BYO Model <https://sagemaker.readthedocs.io/en/stable/overview.html#byo-model>`__
6363
19. `Inference Pipelines <https://sagemaker.readthedocs.io/en/stable/overview.html#inference-pipelines>`__
64-
20. `SageMaker Workflow <#sagemaker-workflow>`__
64+
20. `Amazon SageMaker Operators for Kubernetes <#amazon-sagemaker-operators-for-kubernetes>`__
65+
21. `SageMaker Workflow <#sagemaker-workflow>`__
66+
22. `SageMaker Autopilot <#sagemaker-autopilot>`__
67+
23. `Model Monitoring <#amazon-sagemaker-model-monitoring>`__
68+
24. `SageMaker Debugger <#amazon-sagemaker-debugger>`__
6569

6670

6771
Installing the SageMaker Python SDK
@@ -190,7 +194,7 @@ TensorFlow SageMaker Estimators
190194

191195
By using TensorFlow SageMaker Estimators, you can train and host TensorFlow models on Amazon SageMaker.
192196

193-
Supported versions of TensorFlow: ``1.4.1``, ``1.5.0``, ``1.6.0``, ``1.7.0``, ``1.8.0``, ``1.9.0``, ``1.10.0``, ``1.11.0``, ``1.12.0``, ``1.13.1``, ``1.14``.
197+
Supported versions of TensorFlow: ``1.4.1``, ``1.5.0``, ``1.6.0``, ``1.7.0``, ``1.8.0``, ``1.9.0``, ``1.10.0``, ``1.11.0``, ``1.12.0``, ``1.13.1``, ``1.14.``, ``1.15.0``, ``2.0.0``.
194198

195199
Supported versions of TensorFlow for Elastic Inference: ``1.11.0``, ``1.12.0``, ``1.13.1``, ``1.14``.
196200

@@ -222,7 +226,7 @@ PyTorch SageMaker Estimators
222226

223227
With PyTorch SageMaker Estimators, you can train and host PyTorch models on Amazon SageMaker.
224228

225-
Supported versions of PyTorch: ``0.4.0``, ``1.0.0``, ``1.1.0``, ``1.2.0``.
229+
Supported versions of PyTorch: ``0.4.0``, ``1.0.0``, ``1.1.0``, ``1.2.0``, ``1.3.1``.
226230

227231
We recommend that you use the latest supported version, because that's where we focus most of our development efforts.
228232

@@ -326,6 +330,15 @@ For more information, see `AWS SageMaker Estimators and Models`_.
326330

327331
.. _AWS SageMaker Estimators and Models: src/sagemaker/amazon/README.rst
328332

333+
Amazon SageMaker Operators for Kubernetes
334+
-----------------------------------------
335+
336+
You can use Amazon SageMaker Operators for Kubernetes to optimize hyperparameters for a given model, run batch transform jobs over existing models, and set up inference endpoints.
337+
338+
For more information, see `Amazon SageMaker Operators for Kubernetes`_.
339+
340+
.. _Amazon SageMaker Operators for Kubernetes: https://sagemaker.readthedocs.io/en/stable/amazon_sagemaker_operators_for_kubernetes.html
341+
329342
SageMaker Workflow
330343
------------------
331344

@@ -334,3 +347,33 @@ You can use Apache Airflow to author, schedule and monitor SageMaker workflow.
334347
For more information, see `SageMaker Workflow in Apache Airflow`_.
335348

336349
.. _SageMaker Workflow in Apache Airflow: https://sagemaker.readthedocs.io/en/stable/using_workflow.html
350+
351+
SageMaker Autopilot
352+
-------------------
353+
354+
Amazon SageMaker Autopilot is an automated machine learning solution (commonly referred to as "AutoML") for tabular
355+
datasets. It automatically trains and tunes the best machine learning models for classification or regression based
356+
on your data, and hosts a series of models on an Inference Pipeline.
357+
358+
For more information about SageMaker Autopilot, see `SageMaker Autopilot`_.
359+
360+
.. _SageMaker Autopilot: src/sagemaker/automl/README.rst
361+
362+
Amazon SageMaker Model Monitoring
363+
---------------------------------
364+
365+
You can use Amazon SageMaker Model Monitoring to automatically detect concept drift by monitoring your machine learning models.
366+
367+
For more information, see `Amazon SageMaker Model Monitoring`_.
368+
369+
.. _Amazon SageMaker Model Monitoring: https://sagemaker.readthedocs.io/en/stable/amazon_sagemaker_model_monitoring.html
370+
371+
Amazon SageMaker Debugger
372+
-------------------------
373+
374+
You can use Amazon SageMaker Debugger to automatically detect anomalies while training your machine learning models.
375+
376+
For more information, see `Amazon SageMaker Debugger`_.
377+
378+
.. _Amazon SageMaker Debugger: https://sagemaker.readthedocs.io/en/stable/amazon_sagemaker_debugger.html
379+

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.43.5.dev0
1+
1.50.4.dev0

buildspec.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
version: 0.2
22

33
phases:
4+
pre_build:
5+
commands:
6+
- start-dockerd
7+
48
build:
59
commands:
610
- IGNORE_COVERAGE=-
@@ -16,7 +20,7 @@ phases:
1620
- start_time=`date +%s`
1721
- |
1822
if has-matching-changes "tests/" "src/*.py" "setup.py" "setup.cfg" "buildspec.yml"; then
19-
tox -e py36 -- tests/integ -m "not local_mode" -n 48 --reruns 3 --reruns-delay 5 --durations 50 --boto-config '{"region_name": "us-east-1"}'
23+
tox -e py36 -- tests/integ -m "not local_mode" -n 512 --reruns 3 --reruns-delay 5 --durations 50 --boto-config '{"region_name": "us-east-2"}'
2024
fi
2125
- ./ci-scripts/displaytime.sh 'py36 tests/integ' $start_time
2226

0 commit comments

Comments
 (0)