Skip to content

Commit

Permalink
remove specific experiments in queue (#2715)
Browse files Browse the repository at this point in the history
* remove a special experiments in queue

* Update content/docs/command-reference/exp/remove.md

* Update content/docs/command-reference/exp/remove.md

* Add some example to it

* Recover it

* ref: remove remove --queue example from this PR

* Update content/docs/command-reference/exp/remove.md

* Update content/docs/command-reference/exp/remove.md

* ref: formate exp remove

Co-authored-by: Jorge Orpinel <[email protected]>
  • Loading branch information
karajan1001 and jorgeorpinel authored Sep 1, 2021
1 parent 6020b0f commit bdb8e31
Showing 1 changed file with 30 additions and 1 deletion.
31 changes: 30 additions & 1 deletion content/docs/command-reference/exp/remove.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ positional arguments:

## Description

Deletes one or more experiments, indicated by name (see `dvc exp run`).
Deletes one or more experiments, indicated by name (see `dvc exp run`) or ID
(only queued experiments).

With `--queue`, the list of experiments awaiting execution is cleared instead.

Expand Down Expand Up @@ -65,3 +66,31 @@ $ dvc exp list
```

Nothing is listed after the last `dvc exp list` because they're all gone.

The same applies to queued experiments but these won't have a name to give to
`dvc exp remove` yet (unless you specified one). Alternatively, you can use
their ID (shown when queued, and by `dvc exp show`). Let's queue a few
experiments and then delete some of them:

```dvc
$ dvc exp run --queue -S train.min_split=64
Queued experiment 'e41d5b4' for future execution.
$ dvc exp run --queue -S train.min_split=32 --name split32
Queued experiment '5751540' for future execution.
$ dvc exp run --queue -S train.min_split=16 --name split16
Queued experiment '8de9a6c' for future execution.
$ dvc exp remove e41d5b4 split16
$ dvc exp show --include-params=train.min_split --no-pager
```

```table
┏━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━┳━━━━━━━━━━━━━━━━━┓
┃ Experiment ┃ Created ┃ State ┃ avg_prec ┃ roc_auc ┃ train.min_split ┃
┑━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━╇━━━━━━━━━━╇━━━━━━━━━╇━━━━━━━━━━━━━━━━━┩
β”‚ workspace β”‚ - β”‚ - β”‚ 0.57553 β”‚ 0.94652 β”‚ 2 β”‚
β”‚ master β”‚ Aug 02, 2021 β”‚ - β”‚ 0.53252 β”‚ 0.9107 β”‚ 2 β”‚
β”‚ └── 5751540 [split32] β”‚ 04:57 PM β”‚ Queued β”‚ - β”‚ - β”‚ 32 β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
```

0 comments on commit bdb8e31

Please sign in to comment.