Small edits (#768)

This commit is contained in:
pollfly 2024-01-29 13:31:14 +02:00 committed by GitHub
parent 0cc6baf7d3
commit f017ca99b3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 8 additions and 7 deletions

View File

@ -30,7 +30,7 @@ The sections below describe in more detail what happens in the controller task a
## The Pipeline Controller ## The Pipeline Controller
1. Create the [PipelineController](../../references/sdk/automation_controller_pipelinecontroller.md) object: 1. Create the [`PipelineController`](../../references/sdk/automation_controller_pipelinecontroller.md) object:
```python ```python
pipe = PipelineController( pipe = PipelineController(

View File

@ -4,7 +4,7 @@ title: PipelineDecorator
## Creating Pipelines Using Function Decorators ## Creating Pipelines Using Function Decorators
Use the [PipelineDecorator](../references/sdk/automation_controller_pipelinecontroller.md#class-automationcontrollerpipelinedecorator) Use the [`PipelineDecorator`](../references/sdk/automation_controller_pipelinecontroller.md#class-automationcontrollerpipelinedecorator)
class to create pipelines from your existing functions. Use [`@PipelineDecorator.component`](../references/sdk/automation_controller_pipelinecontroller.md#pipelinedecoratorcomponent) class to create pipelines from your existing functions. Use [`@PipelineDecorator.component`](../references/sdk/automation_controller_pipelinecontroller.md#pipelinedecoratorcomponent)
to denote functions that comprise the steps of your pipeline, and [`@PipelineDecorator.pipeline`](../references/sdk/automation_controller_pipelinecontroller.md#pipelinedecoratorpipeline) to denote functions that comprise the steps of your pipeline, and [`@PipelineDecorator.pipeline`](../references/sdk/automation_controller_pipelinecontroller.md#pipelinedecoratorpipeline)
for your main pipeline execution logic function. for your main pipeline execution logic function.

View File

@ -4,7 +4,7 @@ title: PipelineController
## The PipelineController Class ## The PipelineController Class
Create the [PipelineController](../references/sdk/automation_controller_pipelinecontroller.md), where you will define Create the [`PipelineController`](../references/sdk/automation_controller_pipelinecontroller.md), where you will define
the pipeline's execution logic: the pipeline's execution logic:
```python ```python
from clearml import PipelineController from clearml import PipelineController
@ -45,9 +45,9 @@ values for the new run.
![Pipeline new run](../img/pipelines_new_run.png) ![Pipeline new run](../img/pipelines_new_run.png)
### Additional Configuration ### Additional Configuration
You can connect configuration dictionaries or files to a pipeline controller using the You can connect configuration dictionaries or files to a pipeline controller using
[PipelineController.connect_configuration](../references/sdk/automation_controller_pipelinecontroller.md#connect_configuration) [`PipelineController.connect_configuration()`](../references/sdk/automation_controller_pipelinecontroller.md#connect_configuration)
method by providing the configuration object, or file path. by providing the configuration object, or file path.
For files, call `connect_configuration()` before reading the configuration file. If it's a local file, input a relative For files, call `connect_configuration()` before reading the configuration file. If it's a local file, input a relative
path. path.
@ -55,7 +55,8 @@ path.
```python ```python
config_file = pipe.connect_configuration( config_file = pipe.connect_configuration(
configuration=config_file_path, configuration=config_file_path,
name="My Configuration", description="configuration for pipeline" name="My Configuration",
description="configuration for pipeline"
) )
my_params = json.load(open(config_file,'rt')) my_params = json.load(open(config_file,'rt'))
``` ```