Skip to content

Commit 6270d5a

Browse files
authored
merge with aws/master
merge with aws/master
2 parents 6b0e009 + fb2660a commit 6270d5a

File tree

358 files changed

+21865
-16739
lines changed

Some content is hidden

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

358 files changed

+21865
-16739
lines changed

.coveragerc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
[run]
2-
omit = sagemaker/tests/*, sagemaker/tensorflow/tensorflow_serving/*
2+
concurrency = threading
3+
omit = sagemaker/tests/*
4+
timid = True

CHANGELOG.md

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

3+
## v2.1.0 (2020-08-06)
4+
5+
### Features
6+
7+
* add DLC account numbers for af-south-1 and eu-south-1
8+
9+
## v2.0.1 (2020-08-05)
10+
11+
### Bug Fixes and Other Changes
12+
13+
* use pathlib.PurePosixPath for S3 URLs and Unix paths
14+
* fix regions for updated RL images
15+
16+
### Documentation Changes
17+
18+
* update CHANGELOG to reflect v2.0.0 changes
19+
20+
### Testing and Release Infrastructure
21+
22+
* remove v2-incompatible notebooks from notebook build
23+
24+
## v2.0.0 (2020-08-04)
25+
26+
### Breaking Changes
27+
28+
* rename s3_input to TrainingInput
29+
* Move _NumpyDeserializer to sagemaker.deserializers.NumpyDeserializer
30+
* rename numpy_to_record_serializer to RecordSerializer
31+
* Move _CsvDeserializer to sagemaker.deserializers and rename to CSVDeserializer
32+
* Move _JsonSerializer to sagemaker.serializers.JSONSerializer
33+
* Move _NPYSerializer to sagemaker.serializers and rename to NumpySerializer
34+
* Move _JsonDeserializer to sagemaker.deserializers.JSONDeserializer
35+
* Move _CsvSerializer to sagemaker.serializers.CSVSerializer
36+
* preserve script path when S3 source_dir is provided
37+
* use image_uris.retrieve() for XGBoost URIs
38+
* deprecate sagemaker.amazon.amazon_estimator.get_image_uri()
39+
* deprecate fw_registry module and use image_uris.retrieve() for SparkML
40+
* deprecate Python SDK CLI
41+
* Remove the content_types module
42+
* deprecate unused parameters
43+
* deprecate fw_utils.create_image_uri()
44+
* use images_uris.retrieve() for Debugger
45+
* deprecate fw_utils.parse_s3_url in favor of s3.parse_s3_url
46+
* deprecate unused functions from utils and fw_utils
47+
* Remove content_type and accept parameters from Predictor
48+
* Add parameters to deploy and remove parameters from create_model
49+
* Add LibSVM serializer for XGBoost predictor
50+
* move ShuffleConfig from sagemaker.session to sagemaker.inputs
51+
* deprecate get_ecr_image_uri_prefix
52+
* rename estimator.train_image() to estimator.training_image_uri()
53+
* deprecate is_version_equal_or_higher and is_version_equal_or_lower
54+
* default wait=True for HyperparameterTuner.fit() and Transformer.transform()
55+
* remove unused bin/sagemaker-submit file
56+
57+
### Features
58+
59+
* start new module for retrieving prebuilt SageMaker image URIs
60+
* handle separate training/inference images and EI in image_uris.retrieve
61+
* add support for Amazon algorithms in image_uris.retrieve()
62+
* Add pandas deserializer
63+
* Remove LegacySerializer and LegacyDeserializer
64+
* Add sparse matrix serializer
65+
* Add v2 SerDe compatability
66+
* Add JSON Lines serializer
67+
* add framework upgrade tool
68+
* add 1p algorithm image_uris migration tool
69+
* Update migration tool to support breaking changes to create_model
70+
* support PyTorch 1.6 training
71+
72+
### Bug Fixes and Other Changes
73+
74+
* handle named variables in v2 migration tool
75+
* add modifier for s3_input class
76+
* add XGBoost support to image_uris.retrieve()
77+
* add MXNet configuration to image_uris.retrieve()
78+
* add remaining Amazon algorithms for image_uris.retrieve()
79+
* add PyTorch configuration for image_uris.retrieve()
80+
* make image_scope optional for some images in image_uris.retrieve()
81+
* separate logs() from attach()
82+
* use image_uris.retrieve instead of fw_utils.create_image_uri for DLC frameworks
83+
* use images_uris.retrieve() for scikit-learn classes
84+
* use image_uris.retrieve() for RL images
85+
* Rename BaseDeserializer.deserialize data parameter
86+
* Add allow_pickle parameter to NumpyDeserializer
87+
* Fix scipy.sparse imports
88+
* Improve code style of SerDe compatibility
89+
* use image_uris.retrieve for Neo and Inferentia images
90+
* use generated RL version fixtures and update Ray version
91+
* use image_uris.retrieve() for ModelMonitor default image
92+
* use _framework_name for 'protected' attribute
93+
* Fix JSONLinesDeserializer
94+
* upgrade TFS version and fix py_versions KeyError
95+
* Fix PandasDeserializer tests to more accurately mock response
96+
* don't require instance_type for image_uris.retrieve() if only one option
97+
* ignore code cells with shell commands in v2 migration tool
98+
* Support multiple Accept types
99+
100+
### Documentation Changes
101+
102+
* fix pip install command
103+
* document name changes for TFS classes
104+
* document v2.0.0 changes
105+
* update KFP full pipeline
106+
107+
### Testing and Release Infrastructure
108+
109+
* generate Chainer latest version fixtures from config
110+
* use generated TensorFlow version fixtures
111+
* use generated MXNet version fixtures
112+
113+
## v1.72.0 (2020-07-29)
114+
115+
### Features
116+
117+
* Neo: Add Granular Target Description support for compilation
118+
119+
### Documentation Changes
120+
121+
* Add xgboost doc on bring your own model
122+
* fix typos on processing docs
123+
124+
## v1.71.1 (2020-07-27)
125+
126+
### Bug Fixes and Other Changes
127+
128+
* remove redundant information from the user_agent string.
129+
130+
### Testing and Release Infrastructure
131+
132+
* use unique model name in TFS integ tests
133+
* use pytest-cov instead of coverage
134+
135+
## v1.71.0 (2020-07-23)
136+
137+
### Features
138+
139+
* Add mpi support for mxnet estimator api
140+
141+
### Bug Fixes and Other Changes
142+
143+
* use 'sagemaker' logger instead of root logger
144+
* account for "py36" and "py37" in image tag parsing
145+
3146
## v1.70.2 (2020-07-22)
4147

5148
### Bug Fixes and Other Changes
@@ -41,6 +184,63 @@
41184

42185
* add KFP Processing component
43186

187+
## v2.0.0.rc1 (2020-07-08)
188+
189+
### Breaking Changes
190+
191+
* Move StreamDeserializer to sagemaker.deserializers
192+
* Move StringDeserializer to sagemaker.deserializers
193+
* rename record_deserializer to RecordDeserializer
194+
* remove "train_" where redundant in parameter/variable names
195+
* Add BytesDeserializer
196+
* rename image to image_uri
197+
* rename image_name to image_uri
198+
* create new inference resources during model.deploy() and model.transformer()
199+
* rename session parameter to sagemaker_session in S3 utility classes
200+
* rename distributions to distribution in TF/MXNet estimators
201+
* deprecate update_endpoint arg in deploy()
202+
* create new inference resources during estimator.deploy() or estimator.transformer()
203+
* deprecate delete_endpoint() for estimators and HyperparameterTuner
204+
* refactor Predictor attribute endpoint to endpoint_name
205+
* make instance_type optional for Airflow model configs
206+
* refactor name of RealTimePredictor to Predictor
207+
* remove check for Python 2 string in sagemaker.predictor._is_sequence_like()
208+
* deprecate sagemaker.utils.to_str()
209+
* drop Python 2 support
210+
211+
### Features
212+
213+
* add BaseSerializer and BaseDeserializer
214+
* add Predictor.update_endpoint()
215+
216+
### Bug Fixes and Other Changes
217+
218+
* handle "train_*" renames in v2 migration tool
219+
* handle image_uri rename for Session methods in v2 migration tool
220+
* Update BytesDeserializer accept header
221+
* handle image_uri rename for estimators and models in v2 migration tool
222+
* handle image_uri rename in Airflow model config functions in v2 migration tool
223+
* update migration tool for S3 utility functions
224+
* set _current_job_name and base_tuning_job_name in HyperparameterTuner.attach()
225+
* infer base name from job name in estimator.attach()
226+
* ensure generated names are < 63 characters when deploying compiled models
227+
* add TF migration documentation to error message
228+
229+
### Documentation Changes
230+
231+
* update documentation with v2.0.0.rc1 changes
232+
* remove 'train_*' prefix from estimator parameters
233+
* update documentation for image_name/image --> image_uri
234+
235+
### Testing and Release Infrastructure
236+
237+
* refactor matching logic in v2 migration tool
238+
* add cli modifier for RealTimePredictor and derived classes
239+
* change coverage settings to reduce intermittent errors
240+
* clean up pickle.load logic in integ tests
241+
* use fixture for Python version in framework integ tests
242+
* remove assumption of Python 2 unit test runs
243+
44244
## v1.68.0 (2020-07-07)
45245

46246
### Features
@@ -132,6 +332,31 @@
132332
* set logs to False if wait is False in AutoML
133333
* workflow passing spot training param to training job
134334

335+
## v2.0.0.rc0 (2020-06-17)
336+
337+
### Breaking Changes
338+
339+
* remove estimator parameters for TF legacy mode
340+
* remove legacy `TensorFlowModel` and `TensorFlowPredictor` classes
341+
* force image URI to be passed for legacy TF images
342+
* rename `sagemaker.tensorflow.serving` to `sagemaker.tensorflow.model`
343+
* require `framework_version` and `py_version` for framework estimator and model classes
344+
* change `Model` parameter order to make `model_data` optional
345+
346+
### Bug Fixes and Other Changes
347+
348+
* add v2 migration tool
349+
350+
### Documentation Changes
351+
352+
* update TF documentation to reflect breaking changes and how to upgrade
353+
* start v2 usage and migration documentation
354+
355+
### Testing and Release Infrastructure
356+
357+
* remove scipy from dependencies
358+
* remove TF from optional dependencies
359+
135360
## v1.64.1 (2020-06-16)
136361

137362
### Bug Fixes and Other Changes

MANIFEST.in

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
recursive-include src/sagemaker *
1+
recursive-include src/sagemaker *.py
2+
3+
include src/sagemaker/image_uri_config/*.json
24

35
include VERSION
46
include LICENSE.txt

README.rst

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
+-------------------------------------------------------------------------------------------------+
2-
| **NOTE**: We are working on v2.0.0. See https://github.com/aws/sagemaker-python-sdk/issues/1459 |
3-
| for more info on our plans and to leave feedback! |
4-
+-------------------------------------------------------------------------------------------------+
5-
61
.. image:: https://github.com/aws/sagemaker-python-sdk/raw/master/branding/icon/sagemaker-banner.png
72
:height: 100px
83
:alt: SageMaker
@@ -93,7 +88,6 @@ Supported Python Versions
9388

9489
SageMaker Python SDK is tested on:
9590

96-
- Python 2.7
9791
- Python 3.6
9892
- Python 3.7
9993
- Python 3.8
@@ -122,10 +116,9 @@ You can install the libraries needed to run the tests by running :code:`pip inst
122116

123117
**Unit tests**
124118

125-
126119
We run unit tests with tox, which is a program that lets you run unit tests for multiple Python versions, and also make sure the
127-
code fits our style guidelines. We run tox with Python 2.7, 3.6, 3.7, and 3.8, so to run unit tests
128-
with the same configuration we do, you'll need to have interpreters for Python 2.7, Python 3.6, Python 3.7, and Python 3.8 installed.
120+
code fits our style guidelines. We run tox with `all of our supported Python versions <#supported-python-versions>`_, so to run unit tests
121+
with the same configuration we do, you need to have interpreters for those Python versions installed.
129122

130123
To run the unit tests with tox, run:
131124

VERSION

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

bin/sagemaker-submit

Lines changed: 0 additions & 59 deletions
This file was deleted.

buildspec-localmodetests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ phases:
1111

1212
# local mode tests
1313
- start_time=`date +%s`
14-
- execute-command-if-has-matching-changes "tox -e py27,py38 -- tests/integ -m local_mode --durations 50" "tests/integ" "tests/data" "tests/conftest.py" "tests/__init__.py" "src/*.py" "setup.py" "setup.cfg" "buildspec-localmodetests.yml"
15-
- ./ci-scripts/displaytime.sh 'py27,py38 local mode' $start_time
14+
- execute-command-if-has-matching-changes "tox -e py38 -- tests/integ -m local_mode --durations 50" "tests/integ" "tests/data" "tests/conftest.py" "tests/__init__.py" "src/*.py" "setup.py" "setup.cfg" "buildspec-localmodetests.yml"
15+
- ./ci-scripts/displaytime.sh 'py38 local mode' $start_time

buildspec-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ phases:
1818
# run unit tests
1919
- AWS_ACCESS_KEY_ID= AWS_SECRET_ACCESS_KEY= AWS_SESSION_TOKEN=
2020
AWS_CONTAINER_CREDENTIALS_RELATIVE_URI= AWS_DEFAULT_REGION=
21-
tox -e py27,py36,py37,py38 -- tests/unit
21+
tox -e py36,py37,py38 -- tests/unit
2222

2323
# run a subset of the integration tests
2424
- IGNORE_COVERAGE=- tox -e py36 -- tests/integ -m canary_quick -n 64 --boxed --reruns 2

buildspec-unittests.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,16 @@ phases:
77
- TOX_PARALLEL_NO_SPINNER=1
88
- PY_COLORS=0
99
- start_time=`date +%s`
10-
- tox -e flake8,pylint,twine,black-check
10+
- tox -e flake8,pylint,twine,black-check --parallel all
1111
- ./ci-scripts/displaytime.sh 'flake8,pylint,twine,black-check' $start_time
1212

1313
- start_time=`date +%s`
14-
- tox -e sphinx,doc8
14+
- tox -e sphinx,doc8 --parallel all
1515
- ./ci-scripts/displaytime.sh 'sphinx,doc8' $start_time
1616

1717
# run unit tests
1818
- start_time=`date +%s`
1919
- AWS_ACCESS_KEY_ID= AWS_SECRET_ACCESS_KEY= AWS_SESSION_TOKEN=
2020
AWS_CONTAINER_CREDENTIALS_RELATIVE_URI= AWS_DEFAULT_REGION=
21-
tox -e py27,py36,py37,py38 --parallel all -- tests/unit
22-
- ./ci-scripts/displaytime.sh 'py27,py36,py37,py38 unit' $start_time
21+
tox -e py36,py37,py38 --parallel all -- tests/unit
22+
- ./ci-scripts/displaytime.sh 'py36,py37,py38 unit' $start_time

doc/algorithms/factorization_machines.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ The Amazon SageMaker Factorization Machines algorithm.
88
:undoc-members:
99
:show-inheritance:
1010
:inherited-members:
11-
:exclude-members: image, num_factors, predictor_type, epochs, clip_gradient, mini_batch_size, feature_dim, eps, rescale_grad, bias_lr, linear_lr, factors_lr, bias_wd, linear_wd, factors_wd, bias_init_method, bias_init_scale, bias_init_sigma, bias_init_value, linear_init_method, linear_init_scale, linear_init_sigma, linear_init_value, factors_init_method, factors_init_scale, factors_init_sigma, factors_init_value
11+
:exclude-members: image_uri, num_factors, predictor_type, epochs, clip_gradient, mini_batch_size, feature_dim, eps, rescale_grad, bias_lr, linear_lr, factors_lr, bias_wd, linear_wd, factors_wd, bias_init_method, bias_init_scale, bias_init_sigma, bias_init_value, linear_init_method, linear_init_scale, linear_init_sigma, linear_init_value, factors_init_method, factors_init_scale, factors_init_sigma, factors_init_value
1212

1313

1414
.. autoclass:: sagemaker.FactorizationMachinesModel

0 commit comments

Comments
 (0)