Skip to content

Commit eefbc57

Browse files
authored
Doc fixes for release (#73) (#74)
1 parent 625fdbf commit eefbc57

File tree

5 files changed

+43
-43
lines changed

5 files changed

+43
-43
lines changed

docs/source/user_guide/pipeline/index.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
.. _pipeline:
22

3-
########
4-
Pipeline
5-
########
3+
#########
4+
Pipelines
5+
#########
66

77

88
.. versionadded:: 2.8.0

docs/source/user_guide/pipeline/overview.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
Overview
22
********
33

4-
Oracle Cloud Infrastructure (OCI) Data Science Machine Learning (ML) Pipeline enables you to define and run an end-to-end machine learning orchestration covering all the steps of machine learning lifecycle that can be executed in a repeatable, continuous ML pipeline.
4+
Oracle Cloud Infrastructure (OCI) Data Science Machine Learning (ML) Pipelines lets you define and run an end-to-end machine learning orchestration covering all the steps of machine learning lifecycle that can be executed in a repeatable, continuous ML pipeline.
55

6-
Machine learning lifecycle is composed of data acquisition and extraction, data preparation, featurization, training model including algorithm selection and hyper-parameter tuning, model evaluation, deployment, and then monitoring the deployed model and retraining.
6+
The machine learning lifecycle is composed of several steps: data acquisition and extraction, data preparation, featurization, model training including algorithm selection and hyper-parameter tuning, model evaluation, deployment, and finally monitoring the deployed model and possible retraining.
77

88

99
Pipeline Step
1010
=============
1111

12-
Pipeline step is a task in a pipeline. A pipeline step can be either a Data Science Job step or a Custom Script step.
12+
A pipeline step is a task in a pipeline. A pipeline step can be either a Data Science Job step or a Custom Script step.
1313

1414
Pipeline
1515
========
1616

17-
A pipeline is a workflow of tasks, called steps. Steps can run in sequence or in parallel, creating a Directed Acyclic Graph (DAG) of the steps.
17+
A pipeline is a workflow of tasks, called steps. Steps can run in sequence or in parallel resulting in a Directed Acyclic Graph (DAG) of the steps.
1818

1919
In a machine learning context, ML Pipelines provide a workflow of data import, data transformation, model training, and model evaluation.
2020

docs/source/user_guide/pipeline/pipeline.rst

+17-17
Original file line numberDiff line numberDiff line change
@@ -196,21 +196,21 @@ You can call the ``run()`` method of the ``Pipeline`` instance to launch a new P
196196
It returns a ``PipelineRun`` instance.
197197

198198

199-
The ``.run()`` method gives you the option to override the configurations in a pipeline run. It takes the following optional parameters:
199+
The ``run()`` method gives you the option to override the configurations in a pipeline run. It takes the following optional parameters:
200200

201-
- ``display_name: str, optional``. Defaults to ``None``. The display name of the run.
202-
- ``project_id: str, optional``. Defaults to ``None``. The project id to override the one defined previously.
203-
- ``compartment_id: str, optional``. Defaults to ``None``. The compartment id to override the one defined previously.
204-
- ``configuration_override_details: dict, optional``. Defaults to ``None``. The configuration details dictionary to override the one defined previously. The ``configuration_override_details`` contains the following keys:
201+
- ``display_name: str, optional``. Defaults to ``None``. The display name of the run.
202+
- ``project_id: str, optional``. Defaults to ``None``. The project id to override the one defined previously.
203+
- ``compartment_id: str, optional``. Defaults to ``None``. The compartment id to override the one defined previously.
204+
- ``configuration_override_details: dict, optional``. Defaults to ``None``. The configuration details dictionary to override the one defined previously. The ``configuration_override_details`` contains the following keys:
205205
``type``: str, only ``DEFAULT`` is allowed;
206206
``environment_variables``: dict, the environment variables;
207207
``command_line_arguments``: str, the command line arguments;
208208
``maximum_runtime_in_minutes``: int, the maximum runtime allowed in minutes.
209-
- ``log_configuration_override_details: dict, optional``. Defaults to ``None``. The log configuration details dictionary to override the one defined previously.
210-
- ``step_override_details: list[PipelineStepOverrideDetails], optional``. Defaults to ``None``. The step details list to override the one defined previously.
211-
- ``free_form_tags: dict(str, str), optional``. Defaults to ``None``. The free from tags dictionary to override the one defined previously.
212-
- ``defined_tags: dict(str, dict(str, object)), optional``. Defaults to ``None``. The defined tags dictionary to override the one defined previously.
213-
- ``system_tags: dict(str, dict(str, object)), optional``. Defaults to ``None``. The system tags dictionary to override the one defined previously.
209+
- ``log_configuration_override_details: dict, optional``. Defaults to ``None``. The log configuration details dictionary to override the one defined previously.
210+
- ``step_override_details: list[PipelineStepOverrideDetails], optional``. Defaults to ``None``. The step details list to override the one defined previously.
211+
- ``free_form_tags: dict(str, str), optional``. Defaults to ``None``. The free from tags dictionary to override the one defined previously.
212+
- ``defined_tags: dict(str, dict(str, object)), optional``. Defaults to ``None``. The defined tags dictionary to override the one defined previously.
213+
- ``system_tags: dict(str, dict(str, object)), optional``. Defaults to ``None``. The system tags dictionary to override the one defined previously.
214214

215215
.. code-block:: python3
216216
@@ -233,11 +233,11 @@ Use the ``from_ocid()`` method from the ``Pipeline`` class to load an existing p
233233
Visualize
234234
=========
235235

236-
Use the ``.show()`` method on the ``Pipeline`` instance to visualize the pipeline in a graph.
236+
Use the ``show()`` method on the ``Pipeline`` instance to visualize the pipeline in a graph.
237237

238-
The ``.show()`` method takes the following optional parameter:
238+
The ``show()`` method takes the following optional parameter:
239239

240-
- ``rankdir: (str, optional)``. Defaults to ``TB``. The allowed values are ``TB`` or ``LR``. This parameter is applicable only for ``graph`` mode and it renders the direction of the graph as either top to bottom (TB) or left to right (LR).
240+
- ``rankdir: (str, optional)``. Defaults to ``TB``. The allowed values are ``TB`` or ``LR``. This parameter is applicable only for ``graph`` mode and it renders the direction of the graph as either top to bottom (TB) or left to right (LR).
241241

242242

243243
.. code-block:: python3
@@ -252,11 +252,11 @@ Below is an example of the output.
252252
Delete
253253
======
254254

255-
Use the ``.delete()`` method on the ``Pipeline`` instance to delete a pipeline. It takes the following optional parameters:
255+
Use the ``delete()`` method on the ``Pipeline`` instance to delete a pipeline. It takes the following optional parameters:
256256

257-
- ``delete_related_pipeline_runs: (bool, optional)``. Specify whether to delete related PipelineRuns or not. Defaults to ``True``.
258-
- ``delete_related_job_runs: (bool, optional)``. Specify whether to delete related JobRuns or not. Defaults to ``True``.
259-
- ``max_wait_seconds: (int, optional)``. The maximum time to wait, in seconds. Defaults to ``1800``.
257+
- ``delete_related_pipeline_runs: (bool, optional)``. Specify whether to delete related PipelineRuns or not. Defaults to ``True``.
258+
- ``delete_related_job_runs: (bool, optional)``. Specify whether to delete related JobRuns or not. Defaults to ``True``.
259+
- ``max_wait_seconds: (int, optional)``. The maximum time to wait, in seconds. Defaults to ``1800``.
260260

261261
A pipeline can only be deleted when its associated pipeline runs are all deleted,
262262
or alternatively, set the parameter ``delete_related_pipeline_runs`` to delete all associated runs in the same operation.

docs/source/user_guide/pipeline/pipeline_run.rst

+11-11
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ With a ``PipelineRun`` instance, you can watch the status of the run and stream
1111
Watch status
1212
============
1313

14-
Use the ``.show()`` method of the ``PipelineRun`` instance to watch the status of pipeline run.
14+
Use the ``show()`` method of the ``PipelineRun`` instance to watch the status of pipeline run.
1515

16-
The ``.show()`` method takes the following optional parameter:
16+
The ``show()`` method takes the following optional parameter:
1717

18-
- ``mode: (str, optional)``. Defaults to ``graph``. The allowed values are ``text`` or ``graph``. This parameter renders the current status of pipeline run as either ``text`` or ``graph``.
19-
- ``wait: (bool, optional)``. Defaults to ``False`` and it only renders the current status of each step run in graph. If set to ``True``, it renders the current status of each step run until the entire pipeline is complete.
20-
- ``rankdir: (str, optional)``. Defaults to ``TB``. The allowed values are ``TB`` or ``LR``. This parameter is applicable only for ``graph`` mode and it renders the direction of the graph as either top to bottom (TB) or left to right (LR).
18+
- ``mode: (str, optional)``. Defaults to ``graph``. The allowed values are ``text`` or ``graph``. This parameter renders the current status of pipeline run as either ``text`` or ``graph``.
19+
- ``wait: (bool, optional)``. Defaults to ``False`` and it only renders the current status of each step run in graph. If set to ``True``, it renders the current status of each step run until the entire pipeline is complete.
20+
- ``rankdir: (str, optional)``. Defaults to ``TB``. The allowed values are ``TB`` or ``LR``. This parameter is applicable only for ``graph`` mode and it renders the direction of the graph as either top to bottom (TB) or left to right (LR).
2121

2222
To watch the live update of each step run status in text until the entire pipeline is complete
2323

@@ -49,8 +49,8 @@ Below is an example of the output.
4949
Monitor Logs
5050
============
5151

52-
Use the ``.watch()`` method on the ``PipelineRun`` instance to stream the service, custom, or consolidated log of the pipeline run.
53-
The ``.watch()`` method takes the following optional parameters:
52+
Use the ``watch()`` method on the ``PipelineRun`` instance to stream the service, custom, or consolidated log of the pipeline run.
53+
The ``watch()`` method takes the following optional parameters:
5454

5555
- ``steps: (list, optional)``. Defaults to ``None`` and streams the log of the pipeline run. If a list of the step names is provided, the method streams the log of the specified pipeline step runs.
5656
- ``log_type: (str, optional)``. Defaults to ``None``. The allowed values are ``custom_log``, ``service_log``, or ``None``. If ``None`` is provided, the method streams both service and custom logs.
@@ -122,7 +122,7 @@ Use the ``from_ocid()`` method from the ``PipelineRun`` class to load an existin
122122
Cancel
123123
======
124124

125-
Use the ``.cancel()`` method on the ``PipelineRun`` instance to cancel a pipeline run.
125+
Use the ``cancel()`` method on the ``PipelineRun`` instance to cancel a pipeline run.
126126

127127
Pipeline Runs can only be canceled when they are in the ACCEPTED or IN_PROGRESS state.
128128

@@ -135,10 +135,10 @@ Pipeline Runs can only be canceled when they are in the ACCEPTED or IN_PROGRESS
135135
Delete
136136
======
137137

138-
Use the ``.delete()`` method on the ``PipelineRun`` instance to delete a pipeline run. It takes the following optional parameter:
138+
Use the ``delete()`` method on the ``PipelineRun`` instance to delete a pipeline run. It takes the following optional parameter:
139139

140-
- ``delete_related_job_runs: (bool, optional)``. Specify whether to delete related JobRuns or not. Defaults to ``True``.
141-
- ``max_wait_seconds: (int, optional)``. The maximum time to wait in seconds. Defaults to ``1800``.
140+
* ``delete_related_job_runs: (bool, optional)``. Specify whether to delete related JobRuns or not. Defaults to ``True``.
141+
* ``max_wait_seconds: (int, optional)``. The maximum time to wait in seconds. Defaults to ``1800``.
142142

143143
Pipeline runs can only be deleted when they are already in a SUCCEEDED, FAILED, or CANCELED state.
144144

docs/source/user_guide/pipeline/quick_start.rst

+8-8
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ Quick Start
55
ADS Python SDK
66
==============
77

8-
The following sections provide sample code to define, create and run a pipeline, and watch the pipeline run status.
8+
The following sections provide sample code to define, create, and run a pipeline, including a visualization to track the pipeline run status.
99

10-
The following example shows creating and runnning a pipeline with multiple steps. The steps, ``step_1`` and ``step_2`` run in parallel and
10+
The following example shows creating and runnning a pipeline with multiple steps. The steps ``step_1`` and ``step_2`` run in parallel and
1111
``step_3`` runs after ``step_1`` and ``step_2`` are complete.
1212

1313
.. figure:: figures/quick_start_example.png
@@ -353,7 +353,7 @@ Alternatively, to run an existing pipeline, provide the pipeline OCID with the `
353353
Visualize
354354
---------
355355

356-
To visualize a pipeline in a graph, provide the pipeline OCID
356+
To visualize a pipeline in a graph, use the pipeline OCID
357357

358358
.. code-block:: shell
359359
@@ -362,7 +362,7 @@ To visualize a pipeline in a graph, provide the pipeline OCID
362362
Watch status
363363
------------
364364

365-
To watch the status of pipeline run, provide the pipeline run OCID
365+
To watch the status of pipeline run, use the pipeline run OCID
366366

367367
.. admonition:: Tip
368368

@@ -383,7 +383,7 @@ Below is an example of watching the status of pipeline run in ``text`` mode
383383
Monitor logs
384384
------------
385385

386-
To monitor a pipeline run, provide the pipeline run OCID
386+
To monitor a pipeline run, use the pipeline run OCID.
387387

388388
.. admonition:: Tip
389389

@@ -404,7 +404,7 @@ Below is an example of viewing the last 10 consolidated logs with ``tail``
404404
Cancel
405405
------
406406

407-
To cancel a pipeline run, provide the pipeline run OCID
407+
To cancel a pipeline run, use the pipeline run OCID
408408

409409
.. code-block:: shell
410410
@@ -419,15 +419,15 @@ Delete
419419

420420
Get more information about deleting pipelines and pipeline runs by running ``%pipeline delete -h``
421421

422-
To delete a pipeline run, provide the pipeline run OCID
422+
To delete a pipeline run, use the pipeline run OCID
423423

424424
.. code-block:: shell
425425
426426
%pipeline delete <pipeline_run_ocid>
427427
428428
Data Science Pipeline Runs can only be deleted when they are in the `SUCCEEDED`, `FAILED`, or `CANCELED` state.
429429

430-
To delete a pipeline, provide the pipeline OCID
430+
To delete a pipeline, use the pipeline OCID
431431

432432
.. code-block:: shell
433433

0 commit comments

Comments
 (0)