1
- ##########################################################
2
- Use Version 2.0 of the SageMaker Python SDK (experimental)
3
- ##########################################################
4
-
5
- Development on v2.0.0 of the SageMaker Python SDK is underway.
6
- For more info on our plans, see https://github.com/aws/sagemaker-python-sdk/issues/1459.
1
+ ###########################################
2
+ Use Version 2.x of the SageMaker Python SDK
3
+ ###########################################
7
4
8
5
.. contents ::
9
6
:local:
7
+ :depth: 2
10
8
11
9
************
12
10
Installation
13
11
************
14
12
15
- .. warning ::
16
- Version 2.0.0 is currently experimental, so proceed with caution. If you do run into issues or have any other feedback,
17
- please let us know by `opening an issue <https://github.com/aws/sagemaker-python-sdk/issues/new/choose >`_
18
- or `commenting on our planning issue <https://github.com/aws/sagemaker-python-sdk/issues/1459 >`_.
19
-
20
- To install the latest release candidate:
21
-
22
- .. code :: bash
23
-
24
- pip install git+git://github.com/aws/[email protected]
25
-
26
- To install the latest version of v2:
13
+ To install the latest version:
27
14
28
15
.. code :: bash
29
16
30
- pip install git+git://github.com/aws/sagemaker-python-sdk.git@zwei
17
+ pip install --upgrade sagemaker
31
18
32
19
If you are executing this pip install command in a notebook, make sure to restart your kernel.
33
20
@@ -36,7 +23,7 @@ Changes
36
23
*******
37
24
38
25
This section is for major changes that may require updates to your SageMaker Python SDK code.
39
- You can also see what changes have been made in the `CHANGELOG <https://github.com/aws/sagemaker-python-sdk/blob/zwei /CHANGELOG.md >`_.
26
+ You can also see what changes have been made in the `CHANGELOG <https://github.com/aws/sagemaker-python-sdk/blob/master /CHANGELOG.md >`_.
40
27
41
28
Deprecations
42
29
============
@@ -115,9 +102,46 @@ write MIME types as a string,
115
102
| ``CONTENT_TYPE_NPY `` | ``"application/x-npy" `` |
116
103
+-------------------------------+--------------------------------+
117
104
105
+ Image URI Functions (e.g. ``get_image_uri ``)
106
+ --------------------------------------------
107
+
108
+ The following functions have been deprecated in favor of :func: `sagemaker.image_uris.retrieve `:
109
+
110
+ - ``sagemaker.amazon_estimator.get_image_uri() ``
111
+ - ``sagemaker.fw_utils.create_image_uri() ``
112
+ - ``sagemaker.fw_registry.registry() ``
113
+ - ``sagemaker.utils.get_ecr_image_uri_prefix() ``
114
+
115
+ For more information about usage, see :func: `sagemaker.image_uris.retrieve `.
116
+
117
+ SageMaker Python SDK CLI
118
+ ------------------------
119
+
120
+ The SageMaker Python SDK CLI has been deprecated.
121
+ (This is different from the AWS CLI.)
122
+
123
+ ``enable_cloudwatch_metrics `` for Estimators and Models
124
+ -------------------------------------------------------
125
+
126
+ The parameter ``enable_cloudwatch_metrics `` has been deprecated.
127
+ CloudWatch metrics are already emitted for all Training Jobs, etc.
128
+
129
+ ``sagemaker.fw_utils.parse_s3_url ``
130
+ -----------------------------------
131
+
132
+ The ``sagemaker.fw_utils.parse_s3_url `` function has been deprecated.
133
+ Please use :func: `sagemaker.s3.parse_s3_url ` instead.
134
+
135
+ ``sagemaker.session.ModelContainer ``
136
+ ------------------------------------
137
+
138
+ The class ``sagemaker.session.ModelContainer `` has been deprecated, as it is not needed for creating inference pipelines.
139
+
140
+ Changes in Default Behavior
141
+ ===========================
118
142
119
143
Require ``framework_version `` and ``py_version `` for Frameworks
120
- ===============================================================
144
+ ---------------------------------------------------------------
121
145
122
146
Framework estimator and model classes now require ``framework_version `` and ``py_version `` instead of supplying defaults,
123
147
unless an image URI is explicitly supplied.
@@ -147,6 +171,19 @@ For example:
147
171
py_version = " py3" , # now required
148
172
)
149
173
174
+ Log Display Behavior with ``attach() ``
175
+ --------------------------------------
176
+
177
+ Logs are no longer printed when using ``attach() `` with an estimator.
178
+ To view logs after attaching a training job to an estimator, use :func: `sagemaker.estimator.EstimatorBase.logs `.
179
+
180
+ ``HyperparameterTuner.fit() `` and ``Transformer.transform() ``
181
+ -------------------------------------------------------------
182
+
183
+ :func: `sagemaker.tuner.HyperparameterTuner.fit ` and :func: `sagemaker.transformer.Transformer.transform ` now wait
184
+ until the completion of the Hyperparameter Tuning Job or Batch Transform Job, respectively.
185
+ To make the function non-blocking, use ``wait=False ``.
186
+
150
187
Parameter and Class Name Changes
151
188
================================
152
189
@@ -270,6 +307,19 @@ TensorFlow Serving Predictor
270
307
(For the previous implementation of that class, see `Deprecate Legacy TensorFlow <#deprecate-legacy-tensorflow >`_).
271
308
272
309
310
+ Inputs
311
+ ------
312
+
313
+ ``s3_input ``
314
+ ~~~~~~~~~~~~
315
+
316
+ ``sagemaker.session.s3_input `` has been renamed to :class: `sagemaker.inputs.TrainingInput `.
317
+
318
+ ``ShuffleConfig ``
319
+ ~~~~~~~~~~~~~~~~~
320
+
321
+ ``sagemaker.session.ShuffleConfig `` has been renamed to :class: `sagemaker.inputs.ShuffleConfig `.
322
+
273
323
Airflow
274
324
-------
275
325
0 commit comments