Skip to content

Commit

Permalink
guide: clarifications to dvc.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgeorpinel committed Jan 21, 2021
1 parent 7a7703b commit db9832c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions content/docs/user-guide/project-structure/pipelines-files.md
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,8 @@ ${param.key} # Nested values through . (period)
${param.list[0]} # List elements via index in [] (square brackets)
```

> To use the expression literally in `dvc.yaml`, escape it with a backslash,
> e.g. `\${...`.
> To use the expression in `dvc.yaml`, for example for the shell to interpret a
> command substitution, escape it with a backslash, e.g. `\${...`.

## Generating multiple stages

Expand All @@ -238,6 +238,8 @@ stages:
- raw2 labels2
do:
cmd: clean.py "${item}"
out:
- ${item}.cln
```

Upon `dvc repro`, each item in the list is expanded into its own stage by
Expand Down Expand Up @@ -265,7 +267,8 @@ stages:
thresh: 10
- epochs: 10
thresh: 15
cmd: python train.py ${item.epochs} ${item.thresh}
do:
cmd: python train.py ${item.epochs} ${item.thresh}
```

```yaml
Expand Down

0 comments on commit db9832c

Please sign in to comment.