Skip to content

Commit

Permalink
metrics: accept any viable target update
Browse files Browse the repository at this point in the history
  • Loading branch information
pared committed Oct 14, 2020
1 parent 93219d1 commit f4e6333
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
11 changes: 5 additions & 6 deletions content/docs/command-reference/plots/diff.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ positional arguments:

This command is a way to visualize the "difference" between metrics among
experiments in the <abbr>repository</abbr> history, by plotting multiple
versions of the metrics. All plots defined in `dvc.yaml` are used by default.
versions of the metrics. All plots defined in `dvc.yaml` are used by default. If
`targets` are specified, they do not have to be defined in `dvc.yaml`.

> Note that unlike `dvc metrics diff`, this command does not calculate numeric
> differences between metrics file values.
Expand All @@ -48,11 +49,9 @@ all the current plots, without comparisons.

## Options

- `--targets <path>` - specific metrics files to visualize. These must be listed
in a [`dvc.yaml`](/doc/user-guide/dvc-files-and-directories#dvcyaml-file) file
(see the `--plots` option of `dvc run`). When specifying arguments for
`--targets` before `revisions`, you should use `--` after this option's
arguments, e.g.:
- `--targets <path>` - specific metrics files to visualize. When specifying
arguments for `--targets` before `revisions`, you should use `--` after this
option's arguments, e.g.:

```dvc
$ dvc plots diff --targets t1.json t2.csv -- HEAD v1 v2
Expand Down
4 changes: 2 additions & 2 deletions content/docs/command-reference/plots/show.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ This command provides a quick way to visualize metrics such as loss functions,
AUC curves, confusion matrices, etc. All plots defined in `dvc.yaml` are used by
default.

Optionally, specific metrics file `targets` to show are accepted. These must be
listed in a `dvc.yaml` file (see the `--plots` option of `dvc run`).
Optionally, specific metrics file `targets` to show are accepted. If `targets`
are present, they do not have to be defined in `dvc.yaml` as plots.

The plot style can be customized with
[plot templates](/doc/command-reference/plots#plot-templates), using the
Expand Down

0 comments on commit f4e6333

Please sign in to comment.