File tree Expand file tree Collapse file tree 1 file changed +34
-8
lines changed Expand file tree Collapse file tree 1 file changed +34
-8
lines changed Original file line number Diff line number Diff line change 129
129
130
130
Parameters can be set using the ``--set`` keyword or by specifying them in a
131
131
values YAML file and passing that using ``--values``. In case of passing a file,
132
- the YAML should follow the this structure:
132
+ for a composite workflow like:
133
+
134
+ .. code-block:: console
135
+
136
+ $ renku run --name train -- python train.py --lr=0.1 --gamma=0.5 --output=result.csv
137
+ $ renku run --name eval -- python eval.py --image=graph.png --data=result.csv
138
+ $ renku workflow compose --map learning_rate=train.lr --map graph=eval.image
139
+
140
+ the YAML file could look like:
133
141
134
142
.. code-block:: yaml
135
143
144
+ # composite (mapped) parameters
136
145
learning_rate: 0.9
137
- dataset_input: dataset.csv
138
- chart_output: chart.png
139
- my-workflow:
140
- lr: 0.8
141
- lookup-table: lookup.xml
142
- my-other-workflow:
143
- language: en
146
+ graph: overview.png
147
+ train: # child workflow name
148
+ # child workflow parameters
149
+ gamma: 1.0
150
+
151
+ Which would rerun the two steps but with ``lr`` set to ``0.9``, ``gamma`` set to ``1.0``
152
+ and the output saved under ``overview.png``.
153
+
154
+ Note that this would be the same as using:
155
+
156
+ .. code-block:: yaml
157
+
158
+ train:
159
+ lr: 0.9
160
+ gamma: 1.0
161
+ eval:
162
+ image: overview.png
163
+
164
+ For a regular (non-composite) workflow it is enough to just specify key-value pairs like:
165
+
166
+ .. code-block:: yaml
167
+
168
+ lr: 0.9
169
+ gamma: 1.0
144
170
145
171
In addition to being passed on the command line and being available to
146
172
``renku.ui.api.*`` classes in Python scripts, parameters are also set as
You can’t perform that action at this time.
0 commit comments