Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ref: exp show --only-changed #2966

Merged
merged 8 commits into from
Nov 4, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions content/docs/command-reference/exp/show.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ usage: dvc exp show [-h] [-q | -v] [-a] [-T] [-A] [-n <num>]
[--sort-by <metric/param>]
[--sort-order {asc,desc}] [--no-timestamp] [--sha]
[--json] [--csv] [--md] [--precision <n>]
[--only-changed]
```

## Description
Expand Down Expand Up @@ -73,6 +74,12 @@ metric or param.

- `--param-deps` - include only parameters that are stage dependencies.

- `--only-changed` - show only parameters and metrics with values that vary
across experiments. Note that this option takes precedence over
`--include-params` and `--include-metrics`, for example given
`--include-params=foo --only-changed`, param `foo` would still be hidden if
its value is the same in all experiments.

- `--include-params <list>` - show the specified `dvc params` in the table only.
Accepts a comma-separated `list` of param names. Shell style wildcards
supported: `*`, `?`, `[seq]`, `[!seq]`, and `**` If a `path:` prefix is
Expand Down Expand Up @@ -171,6 +178,22 @@ $ dvc exp show --include-params=featurize
└───────────────────────┴──────────────┴─────────┴────────────────────────┴──────────────────┘
```

You can also filter out any metrics and parameters that do not change across the
shown experiments:

```dvc
$ dvc exp show --only-changed
┏━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ Experiment ┃ Created ┃ auc ┃ featurize.max_features ┃
┡━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━┩
│ workspace │ - │ 0.61314 │ 1500 │
│ 10-bigrams-experiment │ Jun 20, 2020 │ 0.61314 │ 1500 │
│ ├── exp-e6c97 │ Oct 21, 2020 │ 0.61314 │ 1500 │
│ ├── exp-1dad0 │ Oct 09, 2020 │ 0.57756 │ 2000 │
│ └── exp-1df77 │ Oct 09, 2020 │ 0.51676 │ 500 │
└───────────────────────┴──────────────┴─────────┴────────────────────────┘
```

Sort experiments by the `auc` metric, in ascending order:

```dvc
Expand Down