Skip to content

Commit 8cc21f8

Browse files
authored
Documentation for tutorial, optional namespaces (#5145)
* tutorial namespaces Signed-off-by: darkraisisi <[email protected]> * Follow migration convention Signed-off-by: darkraisisi <[email protected]> --------- Signed-off-by: darkraisisi <[email protected]>
1 parent a60eb21 commit 8cc21f8

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

docs/tutorials/add_another_pipeline.md

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -269,27 +269,27 @@ First, add namespaces to the modelling component of the data science pipeline to
269269
```yaml
270270
active_modelling_pipeline:
271271
model_options:
272-
test_size: 0.2
273-
random_state: 3
274-
features:
275-
- engines
276-
- passenger_capacity
277-
- crew
278-
- d_check_complete
279-
- moon_clearance_complete
280-
- iata_approved
281-
- company_rating
282-
- review_scores_rating
272+
test_size: 0.2
273+
random_state: 3
274+
features:
275+
- engines
276+
- passenger_capacity
277+
- crew
278+
- d_check_complete
279+
- moon_clearance_complete
280+
- iata_approved
281+
- company_rating
282+
- review_scores_rating
283283
284284
candidate_modelling_pipeline:
285285
model_options:
286-
test_size: 0.2
287-
random_state: 8
288-
features:
289-
- engines
290-
- passenger_capacity
291-
- crew
292-
- review_scores_rating
286+
test_size: 0.2
287+
random_state: 8
288+
features:
289+
- engines
290+
- passenger_capacity
291+
- crew
292+
- review_scores_rating
293293
```
294294

295295
3. Replace the code in `pipelines/data_science/pipeline.py` with the snippet below:
@@ -326,12 +326,12 @@ First, add namespaces to the modelling component of the data science pipeline to
326326
]
327327
)
328328
ds_pipeline_1 = pipeline(
329-
pipe=pipeline_instance,
329+
nodes=pipeline_instance,
330330
inputs="model_input_table",
331331
namespace="active_modelling_pipeline",
332332
)
333333
ds_pipeline_2 = pipeline(
334-
pipe=pipeline_instance,
334+
nodes=pipeline_instance,
335335
inputs="model_input_table",
336336
namespace="candidate_modelling_pipeline",
337337
)
@@ -443,13 +443,13 @@ You can see this snippet as part of the code you added to the example:
443443
...
444444
445445
ds_pipeline_1 = pipeline(
446-
pipe=pipeline_instance,
446+
nodes=pipeline_instance,
447447
inputs="model_input_table",
448448
namespace="active_modelling_pipeline",
449449
)
450450
451451
ds_pipeline_2 = pipeline(
452-
pipe=pipeline_instance,
452+
nodes=pipeline_instance,
453453
inputs="model_input_table",
454454
namespace="candidate_modelling_pipeline",
455455
)

0 commit comments

Comments
 (0)