Skip to content

Commit

Permalink
cmd ref: metrics index changes to help with #1097
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgeorpinel committed Apr 1, 2020
1 parent f7f1d9a commit 6088c35
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions content/docs/command-reference/metrics/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ $ dvc run -d code/evaluate.py -M data/eval.json \
```

> `-M` (`--metrics-no-cache`) is telling DVC to mark `data/eval.json` as a
> metric file. Using this option is equivalent to using `-O` (`--outs-no-cache`)
> and then running `dvc metrics add data/eval.json` to explicitly mark
> `data/eval.json` as a metric file.
> metric file, without tracking it directly (You can track it with Git). See
> `dvc run` for more info.
Now let's print metric values that we are tracking in this <abbr>project</abbr>:
Now let's print metric values that we are tracking in this <abbr>project</abbr>,
using `dvc metrics show`:

```dvc
$ dvc metrics show -a
Expand All @@ -68,10 +68,10 @@ $ dvc metrics show -a
data/eval.json: {"AUC": "0.624652"}
```

We can also tell DVC an `xpath` for the metric file, so that it can output only
the value of AUC. In the case of JSON, use
[JSONPath expressions](https://goessner.net/articles/JsonPath/index.html) to
selectively extract data out of metric files:
We can also give DVC an `xpath` for the metric file, so that it outputs only the
AUC value. For JSON metrics, we use
[JSONPath](https://goessner.net/articles/JsonPath/index.html) expressions to
filter data out of metric files:

```dvc
$ dvc metrics modify data/eval.json --type json --xpath AUC
Expand Down

0 comments on commit 6088c35

Please sign in to comment.