Skip to content

Commit a19a7e9

Browse files
committed
metrics: accept any viable target update
1 parent cb44c7c commit a19a7e9

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed

content/docs/command-reference/metrics/diff.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,11 @@ lists all the current metrics without comparisons.
4141

4242
## Options
4343

44-
- `--targets <paths>` - limit command scope to these metric files. Using -R,
45-
directories to search metric files in can also be given. When specifying
46-
arguments for `--targets` before `revisions`, you should use `--` after this
47-
option's arguments, e.g.:
44+
- `--targets <paths>` - limit command scope to these metrics files (supports any
45+
file, even when not found as `metrics` in `dvc.yaml`). Using `-R`, directories
46+
to search metric files in can also be given. When specifying arguments for
47+
`--targets` before `revisions`, you should use `--` after this option's
48+
arguments, e.g.:
4849

4950
```dvc
5051
$ dvc metrics diff --targets t1.json t2.yaml -- HEAD v1

content/docs/command-reference/metrics/show.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ Finds and prints all metrics in the <abbr>project</abbr> by examining all of its
2222
> This kind of metrics can be defined with the `-m` (`--metrics`) and `-M`
2323
> (`--metrics-no-cache`) options of `dvc run`.
2424
25-
If `targets` are provided, it will show those specific metric files instead.
26-
With the `-a` or `-T` options, this command shows the different metrics values
27-
across all Git branches or tags, respectively. With the `-R` option, some of the
28-
target can even be directories, so that DVC recursively shows all metric files
29-
inside.
25+
If `targets` are provided, it will show those specific files instead, even if
26+
they are not marked as `metric` type in `dvc.yaml`. With the `-a` or `-T`
27+
options, this command shows the different metrics values across all Git branches
28+
or tags, respectively. With the `-R` option, some of the target can even be
29+
directories, so that DVC recursively shows all metric files inside.
3030

3131
An alternative way to display metrics is the `dvc metrics diff` command, which
3232
compares them with a previous version.

content/docs/command-reference/plots/diff.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,8 @@ please see `dvc plots`.
4545
4646
## Options
4747

48-
- `--targets <path>` - specific metric files to visualize. These must be listed
49-
in a [`dvc.yaml`](/doc/user-guide/dvc-files-and-directories#dvcyaml-file) file
50-
(see the `--plots` option of `dvc run`). When specifying arguments for
48+
- `--targets <path>` - specific metric files to visualize (supports any file,
49+
even when not found as `plots` in `dvc.yaml`). When specifying arguments for
5150
`--targets` before `revisions`, you should use `--` after this option's
5251
arguments, e.g.:
5352

content/docs/command-reference/plots/show.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ This command provides a quick way to visualize metrics such as loss functions,
2222
AUC curves, confusion matrices, etc. All plots defined in `dvc.yaml` are used by
2323
default.
2424

25-
Optionally, specific metric file `targets` to show are accepted. These must be
26-
listed in a `dvc.yaml` file (see the `--plots` option of `dvc run`).
25+
Optionally, specific metric file `targets` to show are accepted. They do not not
26+
have to be specified as `plots` in `dvc.yaml`.
2727

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

0 commit comments

Comments
 (0)