Skip to content

Commit 88439c5

Browse files
authored
doc: add missing classes to API docs (#1161)
1 parent 8ab24cd commit 88439c5

14 files changed

+124
-15
lines changed

doc/algorithm.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Algorithm Estimator
2+
-------------------
3+
4+
.. automodule:: sagemaker.algorithm
5+
:members:
6+
:undoc-members:
7+
:show-inheritance:

doc/automl.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
AutoML
2+
------
3+
4+
.. automodule:: sagemaker.automl.automl
5+
:members:
6+
:undoc-members:
7+
:show-inheritance:
8+
9+
.. automodule:: sagemaker.automl.candidate_estimator
10+
:members:
11+
:undoc-members:
12+
:show-inheritance:

doc/index.rst

Lines changed: 27 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,42 @@ Overview
1616

1717
overview
1818

19-
The SageMaker Python SDK consists of a few primary classes:
19+
The SageMaker Python SDK consists of a variety classes:
20+
21+
Training:
2022

2123
.. toctree::
22-
:maxdepth: 2
24+
:maxdepth: 1
2325

2426
estimators
27+
algorithm
2528
tuner
29+
parameter
30+
automl
31+
processing
32+
analytics
33+
34+
Inference:
35+
36+
.. toctree::
37+
:maxdepth: 1
38+
2639
model
27-
pipeline
40+
multi_data_model
2841
predictors
2942
transformer
43+
pipeline
44+
model_monitor
45+
46+
Utility:
47+
48+
.. toctree::
49+
:maxdepth: 1
50+
3051
session
31-
analytics
52+
inputs
53+
network
54+
s3
3255

3356
*****
3457
MXNet
@@ -175,5 +198,3 @@ SageMaker APIs to export configurations for creating and managing Airflow workfl
175198
:maxdepth: 2
176199

177200
sagemaker.workflow.airflow
178-
179-

doc/inputs.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Inputs
2+
------
3+
4+
.. automodule:: sagemaker.inputs
5+
:members:
6+
:undoc-members:
7+
:show-inheritance:

doc/model_monitor.rst

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
Model Monitor
2+
-------------
3+
4+
.. automodule:: sagemaker.model_monitor.model_monitoring
5+
:members:
6+
:undoc-members:
7+
:show-inheritance:
8+
9+
.. automodule:: sagemaker.model_monitor.monitoring_files
10+
:members:
11+
:undoc-members:
12+
:show-inheritance:
13+
14+
.. automodule:: sagemaker.model_monitor.dataset_format
15+
:members:
16+
:undoc-members:
17+
:show-inheritance:
18+
19+
.. automodule:: sagemaker.model_monitor.data_capture_config
20+
:members:
21+
:undoc-members:
22+
:show-inheritance:
23+
24+
.. automodule:: sagemaker.model_monitor.cron_expression_generator
25+
:members:
26+
:undoc-members:
27+
:show-inheritance:

doc/multi_data_model.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
MultiDataModel
2+
--------------
3+
4+
.. automodule:: sagemaker.multidatamodel
5+
:members:
6+
:undoc-members:
7+
:show-inheritance:

doc/network.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Network Configuration
2+
---------------------
3+
4+
.. automodule:: sagemaker.network
5+
:members:
6+
:undoc-members:
7+
:show-inheritance:

doc/parameter.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Parameters
2+
----------
3+
4+
.. automodule:: sagemaker.parameter
5+
:members:
6+
:undoc-members:
7+
:show-inheritance:

doc/processing.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Processing
2+
----------
3+
4+
.. automodule:: sagemaker.processing
5+
:members:
6+
:undoc-members:
7+
:show-inheritance:

doc/s3.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
S3 Utilities
2+
------------
3+
4+
.. automodule:: sagemaker.s3
5+
:members:
6+
:undoc-members:
7+
:show-inheritance:

doc/session.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ Session
44
.. automodule:: sagemaker.session
55
:members:
66
:undoc-members:
7-
:show-inheritance:
7+
:show-inheritance:

doc/using_tf.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ For example, if you want to use a boolean hyperparameter, specify ``type`` as ``
9393

9494
For a complete example of a TensorFlow training script, see `mnist.py <https://github.com/awslabs/amazon-sagemaker-examples/blob/master/sagemaker-python-sdk/tensorflow_distributed_mnist/mnist.py>`__.
9595

96-
96+
9797
Adapting your local TensorFlow script
9898
-------------------------------------
9999

@@ -181,7 +181,7 @@ Required arguments
181181

182182
- ``str``: An S3 URI, for example ``s3://my-bucket/my-training-data``, which indicates the dataset's location.
183183
- ``dict[str, str]``: A dictionary mapping channel names to S3 locations, for example ``{'train': 's3://my-bucket/my-training-data/train', 'test': 's3://my-bucket/my-training-data/test'}``
184-
- ``sagemaker.session.s3_input``: channel configuration for S3 data sources that can provide additional information as well as the path to the training dataset. See `the API docs <https://sagemaker.readthedocs.io/en/stable/session.html#sagemaker.session.s3_input>`_ for full details.
184+
- ``sagemaker.session.s3_input``: channel configuration for S3 data sources that can provide additional information as well as the path to the training dataset. See `the API docs <https://sagemaker.readthedocs.io/en/stable/inputs.html#sagemaker.inputs.s3_input>`_ for full details.
185185

186186
Optional arguments
187187
------------------
@@ -593,7 +593,7 @@ The following content formats are supported without custom intput and output han
593593
For detailed information about how TensorFlow Serving formats these data types for input and output, see :ref:`using_tf:TensorFlow Serving Input and Output`.
594594
595595
You can also accept any custom data format by writing input and output functions, and include them in the ``inference.py`` file in your model.
596-
For information, see :ref:`using_tf:Create Python Scripts for Custom Input and Output Formats`.
596+
For information, see :ref:`using_tf:Create Python Scripts for Custom Input and Output Formats`.
597597
598598
599599
TensorFlow Serving Input and Output

src/sagemaker/multidatamodel.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -253,13 +253,13 @@ def deploy(
253253
return None
254254

255255
def add_model(self, model_data_source, model_data_path=None):
256-
"""Adds a model to the `MultiDataModel` by uploading or copying the model_data_source
256+
"""Adds a model to the ``MultiDataModel`` by uploading or copying the model_data_source
257257
artifact to the given S3 path model_data_path relative to model_data_prefix
258258
259259
Args:
260-
model_source: Valid local file path or S3 path of the trained model artifact
261-
model_data_path: S3 path where the trained model artifact
262-
should be uploaded relative to `self.model_data_prefix` path. (default: None).
260+
model_source: Valid local file path or S3 path of the trained model artifact
261+
model_data_path: S3 path where the trained model artifact
262+
should be uploaded relative to ``self.model_data_prefix`` path. (default: None).
263263
If None, then the model artifact is uploaded to a path relative to model_data_prefix
264264
265265
Returns:

src/sagemaker/processing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -686,7 +686,7 @@ def __init__(self, source, destination=None, output_name=None, s3_upload_mode="E
686686
source (str): The source for the output.
687687
destination (str): The destination of the output. If a destination
688688
is not provided, one will be generated:
689-
"s3://<default-bucket-name>/<job-name>/output/<output-name>".
689+
"s3://<default-bucket-name>/<job-name>/output/<output-name>".
690690
output_name (str): The name of the output. If a name
691691
is not provided, one will be generated (eg. "output-1").
692692
s3_upload_mode (str): Valid options are "EndOfJob" or "Continuous".

0 commit comments

Comments
 (0)