Skip to content

Commit 338e00b

Browse files
committed
Address comments from Eric
1 parent d98e6be commit 338e00b

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

src/sagemaker/workflow/README.rst

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ is a platform that enables you to programmatically author, schedule, and monitor
1010
you can build a workflow for SageMaker training, hyperparameter tuning, batch transform and endpoint deployment.
1111
You can use any SageMaker deep learning framework or Amazon algorithms to perform above operations in Airflow.
1212

13-
There are two ways to build SageMaker workflow. Using Airflow SageMaker operators or using Airflow PythonOperator.
13+
There are two ways to build a SageMaker workflow. Using Airflow SageMaker operators or using Airflow PythonOperator.
1414

15-
1. SageMaker Operators: Since Airflow 1.10.1, we contributed special operators just for SageMaker operations.
16-
Each operator takes a configuration dictionary that defines the corresponding operation. And we provide APIs to
17-
generate the configuration dictionary in SageMaker Python SDK. Current supported SageMaker operators are:
15+
1. SageMaker Operators: In Airflow 1.10.1, the SageMaker team contributed special operators for SageMaker operations.
16+
Each operator takes a configuration dictionary that defines the corresponding operation. We provide APIs to generate
17+
the configuration dictionary in the SageMaker Python SDK. Currently, the following SageMaker operators are supported:
1818

1919
* ``SageMakerTrainingOperator``
2020
* ``SageMakerTuningOperator``
@@ -23,20 +23,20 @@ generate the configuration dictionary in SageMaker Python SDK. Current supported
2323
* ``SageMakerEndpointConfigOperator``
2424
* ``SageMakerEndpointOperator``
2525

26-
2. PythonOperator: Airflow built-in operator that could execute Python callables. You could use SageMaker Python SDK to
27-
customize your workflow with PythonOperator.
26+
2. PythonOperator: Airflow built-in operator that executes Python callables. You can use the PythonOperator to execute
27+
operations in the SageMaker Python SDK to create a SageMaker workflow.
2828

2929
Using Airflow on AWS
3030
~~~~~~~~~~~~~~~~~~~~
3131

32-
Turbine is an open source AWS CloudFormation template to create Airflow resources stack on AWS.
32+
Turbine is an open-source AWS CloudFormation template that enables you to create an Airflow resource stack on AWS.
3333
You can get it here: https://github.com/villasv/aws-airflow-stack
3434

3535
Using Airflow SageMaker Operators
3636
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3737

38-
Starting from Airflow 1.10.1, you could use SageMaker operators in Airflow. All SageMaker operators take a
39-
configuration dictionary that can be easily generated by SageMaker Python SDK. For example:
38+
Starting with Airflow 1.10.1, you can use SageMaker operators in Airflow. All SageMaker operators take a configuration
39+
dictionary that can be generated by the SageMaker Python SDK. For example:
4040

4141
.. code:: python
4242
@@ -63,7 +63,7 @@ configuration dictionary that can be easily generated by SageMaker Python SDK. F
6363
data=your_transform_data_s3_uri,
6464
content_type='text/csv')
6565
66-
Now we can pass these configurations to related SageMaker operators and create the workflow:
66+
Now you can pass these configurations to the corresponding SageMaker operators and create the workflow:
6767

6868
.. code:: python
6969
@@ -99,8 +99,8 @@ Using Airflow Python Operator
9999
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
100100

101101
`Airflow PythonOperator <https://airflow.apache.org/howto/operator.html?#pythonoperator>`_
102-
is a built-in operator that can execute any Python callables. If you want to build the SageMaker workflow in a more
103-
flexible way, you could write your python callables for SageMaker operations using SageMaker Python SDK. For example:
102+
is a built-in operator that can execute any Python callable. If you want to build the SageMaker workflow in a more
103+
flexible way, write your python callables for SageMaker operations by using the SageMaker Python SDK.
104104

105105
.. code:: python
106106
@@ -125,7 +125,7 @@ flexible way, you could write your python callables for SageMaker operations us
125125
transformer = estimator.transformer(instance_count=1, instance_type='ml.c4.xlarge')
126126
transformer.transform(data, content_type='text/csv')
127127
128-
Then you could build your workflow using PythonOperator with Python callables defined above:
128+
Then build your workflow by using the PythonOperator with the Python callables defined above:
129129

130130
.. code:: python
131131
@@ -158,5 +158,5 @@ Then you could build your workflow using PythonOperator with Python callables de
158158
159159
transform_op.set_upstream(train_op)
160160
161-
A workflow with SageMaker training and batch transform is finished! In this way, you could customize your Python
162-
callables with SageMaker Python SDK according to your needs and build more flexible and powerful workflow.
161+
A workflow that runs a SageMaker training job and a batch transform job is finished. You can customize your Python
162+
callables with the SageMaker Python SDK according to your needs, and build more flexible and powerful workflows.

0 commit comments

Comments
 (0)