mirror of
https://github.com/clearml/clearml-docs
synced 2025-03-03 02:32:49 +00:00
Fix pipeline code snippets (#118)
This commit is contained in:
parent
cf108b2ebd
commit
014d7b960a
@ -29,7 +29,7 @@ and lastly we want to create a new version of the data.
|
||||
|
||||
```python
|
||||
# create a task for the data processing part
|
||||
task = Task.init(project_name='data', task_name='ingest', task_type='data_processing')
|
||||
task = Task.init(project_name='data', task_name='create', task_type='data_processing')
|
||||
|
||||
# get the v1 dataset
|
||||
dataset = Dataset.get(dataset_project='data', dataset_name='dataset_v1')
|
||||
@ -86,20 +86,24 @@ It is important to remember that pipelines are Tasks by themselves and can also
|
||||
|
||||
```python
|
||||
pipe = PipelineController(
|
||||
always_create_task=True,
|
||||
pipeline_project='data', pipeline_name='pipeline demo',
|
||||
project='data',
|
||||
name='pipeline demo',
|
||||
version="1.0"
|
||||
)
|
||||
|
||||
pipe.add_step(
|
||||
name='step 1 data',
|
||||
base_task_id='cbc84a74288e459c874b54998d650214', # Put the task ID here
|
||||
base_project_name='data',
|
||||
base_task_name='create'
|
||||
)
|
||||
pipe.add_step(
|
||||
name='step 2 train',
|
||||
parents=['step 1 data', ],
|
||||
base_task_id='cbc84a74288e459c874b54998d650214', # Put the task ID here
|
||||
base_project_name='data',
|
||||
base_task_name='ingest'
|
||||
)
|
||||
```
|
||||
|
||||
We could also pass the parameters from one step to the other (for example `Task.id`).
|
||||
See more in the full pipeline documentation [here](../../fundamentals/pipelines.md).
|
||||
In addition to pipelines made up of Task steps, ClearML also supports pipelines consisting of function steps. See more in the
|
||||
full pipeline documentation [here](../../fundamentals/pipelines.md).
|
Loading…
Reference in New Issue
Block a user