Skip to content

Commit

Permalink
cmd ref: more updates on new dag command
Browse files Browse the repository at this point in the history
per #1383 (review)
et al.
  • Loading branch information
jorgeorpinel committed Jun 24, 2020
1 parent c7bfc8d commit 30220bc
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 22 deletions.
34 changes: 17 additions & 17 deletions content/docs/command-reference/dag.md
Original file line number Diff line number Diff line change
@@ -1,49 +1,49 @@
# dag

Show [stages](/doc/command-reference/run) in a pipeline that lead to the
specified stage. By default it lists
[DVC-files](/doc/user-guide/dvc-files-and-directories).
Display connected [stages](/doc/command-reference/run) in the pipelines that
contains them.

## Synopsis

```usage
usage: dvc dag [-h] [-q | -v] [--dot] [--full] [target]
positional arguments:
targets Stage or output to show pipeline for (optional)
Finds all stages in the workspace by default.
target Stage or output to show pipeline for (optional)
Uses all stages in the workspace by default.
```

## Description

A data pipeline, in general, is a series of data processing
[stages](/doc/command-reference/run) (for example console commands that take an
input and produce an <abbr>output</abbr>). A pipeline may produce intermediate
data, and has a final result. Machine learning (ML) pipelines typically start a
with large raw datasets, include intermediate featurization and training stages,
and produce a final model, as well as accuracy
[metrics](/doc/command-reference/metrics).
data, and has a final result.

Machine learning (ML) pipelines typically start a with large raw datasets,
include intermediate featurization and training stages, and produce a final
model, as well as accuracy [metrics](/doc/command-reference/metrics).

In DVC, pipeline stages and commands, their data I/O, interdependencies, and
results (intermediate or final) are specified with `dvc add` and `dvc run`,
among other commands. This allows DVC to restore one or more pipelines of stages
interconnected by their dependencies and outputs later. (See `dvc repro`.)
results (intermediate or final) are specified in `dvc.yaml`, which can be
written manually or built using the helper command `dvc run`. This allows DVC to
restore one or more pipelines later (see `dvc repro`).

> DVC builds a dependency graph
> ([DAG](https://en.wikipedia.org/wiki/Directed_acyclic_graph)) to do this.
`dvc dag` displays the stages of a pipeline up to the target stage. If `target`
is omitted, it will show the full project DAG.
`dvc dag` command displays the stages of a pipeline up to the target stage. If
`target` is omitted, it will show the full project DAG.

## Options

- `--full` - show full DAG that the `target` stage belongs too, instead of
showing only its ancestors.

- `--dot` - show DAG in
[DOT](<https://en.wikipedia.org/wiki/DOT_(graph_description_language)>)
format. It can be passed to third party visualization utilities.

- `--full` - show full DAG that the `target` belongs too, instead of showing the
part that consists only of the target ancestors.

- `-h`, `--help` - prints the usage/help message, and exit.

- `-q`, `--quiet` - do not write anything to standard output. Exit with 0 if no
Expand Down
1 change: 0 additions & 1 deletion content/docs/command-reference/push.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,6 @@ a [pipeline](/doc/command-reference/pipeline) has been setup with these

```dvc
$ dvc pipeline show
data/Posts.xml.zip.dvc
Posts.xml.dvc
Posts.tsv.dvc
Expand Down
4 changes: 2 additions & 2 deletions content/docs/user-guide/running-dvc-on-windows.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ directory, as explained in
## Enabling paging with `less`

By default, DVC tries to use [Less](<https://en.wikipedia.org/wiki/Less_(Unix)>)
as pager for the output of `dvc dag`. Windows doesn't have the less command
available however. Fortunately, there is a easy way of installing `less` via
as pager for the output of `dvc dag`. Windows doesn't have the `less` command
available however. Fortunately, there is a easy way of installing it via
[Chocolatey](https://chocolatey.org/) (please install the tool first):

```dvc
Expand Down
4 changes: 2 additions & 2 deletions redirects-list.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@
"^/doc/understanding-dvc(/.*)?$ /doc/user-guide/what-is-dvc",
"^/doc/commands-reference(/.*)?$ /doc/command-reference$1",
"^/doc/command-reference/plot$ /doc/command-reference/plots",
"^/doc/command-reference/lock$ /doc/command-reference/freeze",
"^/doc/command-reference/unlock$ /doc/command-reference/unfreeze",
"^/doc/command-reference/pipeline$ /doc/command-reference/dag",
"^/doc/command-reference/pipeline/show$ /doc/command-reference/dag",
"^/doc/command-reference/pipeline/list$ /doc/command-reference/dag",
"^/doc/command-reference/lock$ /doc/command-reference/freeze",
"^/doc/command-reference/unlock$ /doc/command-reference/unfreeze",

"^/(.+)/$ /$1"
]

0 comments on commit 30220bc

Please sign in to comment.