Skip to content

Commit 2df8fb6

Browse files
authored
Merge branch 'master' into master
2 parents cef44c1 + d229105 commit 2df8fb6

38 files changed

+723
-57
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,17 @@
88

99
_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._
1010

11+
#### General
12+
1113
- [ ] I have read the [CONTRIBUTING](https://github.com/aws/sagemaker-python-sdk/blob/master/CONTRIBUTING.md) doc
1214
- [ ] I used the commit message format described in [CONTRIBUTING](https://github.com/aws/sagemaker-python-sdk/blob/master/CONTRIBUTING.md#committing-your-change)
1315
- [ ] 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+
1420
- [ ] I have added tests that prove my fix is effective or that my feature works (if appropriate)
1521
- [ ] I have checked that my tests are not configured for a specific region or account (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)
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)
1723

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

README.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ Table of Contents
6565
21. `SageMaker Workflow <#sagemaker-workflow>`__
6666
22. `SageMaker Autopilot <#sagemaker-autopilot>`__
6767
23. `Model Monitoring <#amazon-sagemaker-model-monitoring>`__
68+
24. `SageMaker Debugger <#amazon-sagemaker-debugger>`__
6869

6970

7071
Installing the SageMaker Python SDK
@@ -366,3 +367,13 @@ You can use Amazon SageMaker Model Monitoring to automatically detect concept dr
366367
For more information, see `Amazon SageMaker Model Monitoring`_.
367368

368369
.. _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+

doc/amazon_sagemaker_debugger.rst

Lines changed: 415 additions & 0 deletions
Large diffs are not rendered by default.

doc/amazon_sagemaker_operators_for_kubernetes.rst

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,12 +82,11 @@ IAM role-based operator deployment
8282
Before you can deploy your operator using an IAM role, associate an OpenID Connect (OIDC) provider with your role to
8383
authenticate with the IAM service.
8484

85-
Associate an OpenID Connect Provider to Your Instance
86-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
85+
Create an OpenID Connect Provider for Your Cluster
86+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
8787

88-
Create an OIDC identity provider for your cluster. If your
89-
cluster is managed by EKS, then your cluster will already have an OIDC
90-
attached to it.
88+
The following instruction will create and associate an OIDC provider
89+
with your EKS cluster.
9190

9291
Set the local ``CLUSTER_NAME`` and \ ``AWS_REGION`` environment
9392
variables as follows:

doc/amazon_sagemaker_operators_for_kubernetes_jobs.rst

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,13 @@ Download the sample YAML file for training using the following command:
2929

3030
wget https://github.com/aws/amazon-sagemaker-operator-for-k8s/blob/master/samples/xgboost-mnist-trainingjob.yaml
3131

32-
Edit the \ ``xgboost-mnist-trainingjob.yaml`` file to replace the ``roleArn`` parameter with your \ ``<sagemaker-execution-role>``, and \ ``outputPath`` with your S3 bucket that the Amazon SageMaker
33-
execution role has write access to. Apply the YAML file using the
32+
Edit the ``xgboost-mnist-trainingjob.yaml`` file to replace the ``roleArn`` parameter with your ``<sagemaker-execution-role>``, and ``outputPath`` with your S3 bucket that the Amazon SageMaker
33+
execution role has write access to. The ``roleArn`` must have permissions so that Amazon SageMaker
34+
can access Amazon S3, Amazon CloudWatch, and other services on your
35+
behalf. For more information on creating an Amazon SageMaker
36+
ExecutionRole, see `Amazon SageMaker
37+
Roles <https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-roles.html#sagemaker-roles-createtrainingjob-perms>`__.
38+
Apply the YAML file using the
3439
following command:
3540

3641
::

doc/index.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,3 +208,13 @@ You can use Amazon SageMaker Model Monitoring to automatically detect concept dr
208208
:maxdepth: 2
209209

210210
amazon_sagemaker_model_monitoring
211+
212+
*************************
213+
Amazon SageMaker Debugger
214+
*************************
215+
You can use Amazon SageMaker Debugger to automatically detect anomalies while training your machine learning models.
216+
217+
.. toctree::
218+
:maxdepth: 2
219+
220+
amazon_sagemaker_debugger

doc/overview.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1048,6 +1048,15 @@ For more information, see `SageMaker Model Monitoring`_.
10481048
10491049
.. _SageMaker Model Monitoring: https://github.com/aws/sagemaker-python-sdk/blob/master/doc/amazon_sagemaker_model_monitoring.rst
10501050
1051+
******************
1052+
SageMaker Debugger
1053+
******************
1054+
You can use Amazon SageMaker Debugger to automatically detect anomalies while training your machine learning models.
1055+
1056+
For more information, see `SageMaker Debugger`_.
1057+
1058+
.. _SageMaker Debugger: https://github.com/aws/sagemaker-python-sdk/blob/master/doc/amazon_sagemaker_debugger.rst
1059+
10511060
***
10521061
FAQ
10531062
***

doc/using_chainer.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,10 @@ When running your training script on SageMaker, it will have access to some pre-
116116
For more information on the runtime environment, including specific package versions, see `SageMaker Chainer Docker containers <#sagemaker-chainer-docker-containers>`__.
117117

118118
If there are other packages you want to use with your script, you can include a ``requirements.txt`` file in the same directory as your training script to install other dependencies at runtime.
119-
A ``requirements.txt`` file is a text file that contains a list of items that are installed by using ``pip install``. You can also specify the version of an item to install.
119+
Both ``requirements.txt`` and your training script should be put in the same folder.
120+
You must specify this folder in ``source_dir`` argument when creating a Chainer estimator.
121+
A ``requirements.txt`` file is a text file that contains a list of items that are installed by using ``pip install``.
122+
You can also specify the version of an item to install.
120123
For information about the format of a ``requirements.txt`` file, see `Requirements Files <https://pip.pypa.io/en/stable/user_guide/#requirements-files>`__ in the pip documentation.
121124

122125
Create an Estimator
@@ -637,4 +640,4 @@ SageMaker Chainer Docker containers
637640

638641
You can visit the SageMaker Chainer containers repository here: https://github.com/aws/sagemaker-chainer-container
639642

640-
For information about SageMaker Chainer Docker containers and their dependencies, see `SageMaker Chainer Docker containers <https://github.com/aws/sagemaker-python-sdk/tree/master/src/sagemaker/chainer#sagemaker-chainer-docker-containers>`_.
643+
For information about SageMaker Chainer Docker containers and their dependencies, see `SageMaker Chainer Docker containers <https://github.com/aws/sagemaker-python-sdk/tree/master/src/sagemaker/chainer#sagemaker-chainer-docker-containers>`_.

doc/using_mxnet.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,10 @@ When running your training script on SageMaker, it will have access to some pre-
310310
For more information on the runtime environment, including specific package versions, see `SageMaker MXNet Containers <#sagemaker-mxnet-containers>`__.
311311

312312
If there are other packages you want to use with your script, you can include a ``requirements.txt`` file in the same directory as your training script to install other dependencies at runtime.
313-
A ``requirements.txt`` file is a text file that contains a list of items that are installed by using ``pip install``. You can also specify the version of an item to install.
313+
Both ``requirements.txt`` and your training script should be put in the same folder.
314+
You must specify this folder in ``source_dir`` argument when creating an MXNet estimator.
315+
A ``requirements.txt`` file is a text file that contains a list of items that are installed by using ``pip install``.
316+
You can also specify the version of an item to install.
314317
For information about the format of a ``requirements.txt`` file, see `Requirements Files <https://pip.pypa.io/en/stable/user_guide/#requirements-files>`__ in the pip documentation.
315318

316319
Create an Estimator

doc/using_pytorch.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,6 @@ The function of installing packages using ``requirements.txt`` is supported for
131131

132132
A ``requirements.txt`` file is a text file that contains a list of items that are installed by using ``pip install``. You can also specify the version of an item to install. For information about the format of a ``requirements.txt`` file, see `Requirements Files <https://pip.pypa.io/en/stable/user_guide/#requirements-files>`__ in the pip documentation.
133133

134-
135134
Create an Estimator
136135
===================
137136

0 commit comments

Comments
 (0)