-
Notifications
You must be signed in to change notification settings - Fork 394
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
guide: Managing Experiments #2752
Changes from 52 commits
a67a3a3
03614f9
a710bfb
b4ea144
d10b404
ee770ee
554f49b
dc8ca5f
65cebd3
abdc5cf
85bafd3
7b30610
a8df69b
0fed151
60ab835
aaa166d
cbe1ecf
cda1ec8
de0a2fa
0cf27d0
6a118f7
0ae2f22
1dbe4ce
856af67
c7e12fc
d941a83
1ebe108
f52793c
68cab41
bb9b3a9
a60f4e7
af9469f
b88e34c
31f28fb
fd1d1c5
a496f74
27a475c
7c80f59
778e124
5039adf
0f334ca
7a8f155
c07885c
2639585
d2382f6
85a38c9
0d5148d
b1b2d8e
52c22d1
1523f04
ec57601
47b6c44
ab728cf
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
# Managing Experiments | ||
|
||
Once you have defined and/or [run experiments] in your project, you can use | ||
several features of DVC to see, compare, reproduce, share, or remove them. | ||
|
||
[run experiments]: /doc/user-guide/experiment-management/running-experiments | ||
|
||
## Experiment names | ||
|
||
Experiments created with `dvc exp run` will have an auto-generated name like | ||
`exp-bfe64` by default. It can be customized using the `--name` (`-n`) option: | ||
|
||
```dvc | ||
$ dvc exp run --name cnn-512 --set-param model.conv_units=512 | ||
``` | ||
|
||
When you create an experiment, DVC generates a Git-like SHA-1 hash from its | ||
contents. This is shown when you [queue experiments] with `--queue`: | ||
Comment on lines
+17
to
+18
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
|
||
[queue experiments]: | ||
/doc/user-guide/experiment-management/running-experiments#the-experiments-queue | ||
|
||
```dvc | ||
$ dvc exp run --queue -S model.conv_units=32 | ||
Queued experiment '6518f17' for future execution. | ||
``` | ||
|
||
After running queued experiment, DVC uses the regular name mentioned earlier. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
|
||
> Note that you can set a queued experiment's name in advance: | ||
> | ||
> ```dvc | ||
> $ dvc exp run --queue --name cnn-512 -S model.conv_units=512 | ||
> Queued experiment '86bd8f9' for future execution. | ||
> ``` | ||
|
||
You can refer to experiments in `dvc exp apply` or `dvc exp branch` either with | ||
regular experiment names or by their SHA hashes. | ||
|
||
## Listing experiments | ||
|
||
Use `dvc exp show` to see both run and queued experiments: | ||
|
||
```dvc | ||
$ dvc exp show --no-pager --no-timestamp \ | ||
--include-metrics loss --include-params model.conv_units | ||
``` | ||
|
||
```dvctable | ||
┏━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━┳━━━━━━━━━━━━━━━━━━┓ | ||
┃ neutral:**Experiment** ┃ metric:**loss** ┃ param:**model.conv_units** ┃ | ||
┡━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━╇━━━━━━━━━━━━━━━━━━┩ | ||
│ workspace │ 0.23534 │ 64 │ | ||
│ 3973b6b │ - │ 16 │ | ||
│ ├── aeaabb0 [exp-cb13f] │ 0.23534 │ 64 │ | ||
│ ├── d0ee7ce [exp-5dccf] │ 0.23818 │ 32 │ | ||
│ ├── 1533e4d [exp-88874] │ 0.24039 │ 128 │ | ||
│ ├── b1f41d3 [cnn-256] │ 0.23296 │ 256 │ | ||
│ ├── 07e927f [exp-6c06d] │ 0.23279 │ 24 │ | ||
│ ├── b2b8586 [exp-2a1d5] │ 0.25036 │ 16 │ | ||
│ └── *86bd8f9 │ - │ 512 │ | ||
└─────────────────────────┴─────────┴──────────────────┘ | ||
``` | ||
|
||
When an experiment is not run yet, only the former hash is shown (marked with | ||
`*`). | ||
|
||
<!-- WIP --> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.