Skip to content

Commit

Permalink
docs: dag: add new example
Browse files Browse the repository at this point in the history
  • Loading branch information
efiop committed Jun 23, 2020
1 parent 8f46437 commit 3cbeb07
Showing 1 changed file with 23 additions and 41 deletions.
64 changes: 23 additions & 41 deletions content/docs/command-reference/dag.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ variable. For example, the following command will replace the default pager with
[`more`](<https://en.wikipedia.org/wiki/More_(command)>), for a single run:

```dvc
$ DVC_PAGER=more dvc dag my-pipeline.dvc
$ DVC_PAGER=more dvc dag
```

For a persistent change, define `DVC_PAGER` in the shell configuration. For
Expand All @@ -83,44 +83,26 @@ export DVC_PAGER=more
Visualize DVC pipeline:

```dvc
$ dvc dag eval.txt.dvc
.------------------------.
| data/Posts.xml.zip.dvc |
`------------------------'
*
*
*
.---------------.
| Posts.xml.dvc |
`---------------'
*
*
*
.---------------.
| Posts.tsv.dvc |
`---------------'
*
*
*
.---------------------.
| Posts-train.tsv.dvc |
`---------------------'
*
*
*
.--------------------.
| matrix-train.p.dvc |
`--------------------'
*** ***
** ***
** **
.-------------. **
| model.p.dvc | **
`-------------' ***
*** ***
** **
** **
.--------------.
| eval.txt.dvc |
`--------------'
$ dvc dag
+---------+
| prepare |
+---------+
*
*
*
+-----------+
| featurize |
+-----------+
** **
** *
* **
+-------+ *
| train | **
+-------+ *
** **
** **
* *
+----------+
| evaluate |
+----------+
```

0 comments on commit 3cbeb07

Please sign in to comment.