exp run: option to append unique id to duplicate exp names
See original GitHub issueFor example, right now the behavior is:
$ dvc exp run -n alexnet
Reproduced experiment(s): alexnet
$ dvc exp run -n alexnet
ERROR: Reproduced experiment conflicts with existing experiment alexnet
Desired behavior would be:
$ dvc exp run -n alexnet
Reproduced experiment(s): alexnet
$ dvc exp run -n alexnet
WARNING: Reproduced experiment conflicts with existing experiment alexnet, so unique ID was appended to the experiment name.
Reproduced experiment(s): alexnet-fds23
There might need to be some option to either strictly fail or use a unique ID.
Extracted from https://github.com/iterative/dvc/issues/6071#issuecomment-924804238.
For anyone interested, please note the workaround mentioned by @iesahin:
dvc exp run -n myprefix-${RANDOM}
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Add records to a table by using an append query
This article explains how to create and run an append query. You use an append query when you need to add new records...
Read more >#1062 - Duplicate entry '' for key 'unique_id' When Trying to ...
The error says it all: Duplicate entry ''. So run the following query: SELECT unique_id,COUNT(unique_id) FROM yourtblname GROUP BY unique_id ...
Read more >How to add a Unique Identifier to a SharePoint list or library
With this post, I would like to show you how you can add a unique identifier to a SharePoint list or library for...
Read more >Rendering a list of Vue components - Learn web development
First we need to get an array of to-do items. To do that, we'll add a data property to the App.vue component object,...
Read more >Unique Identifiers (EX & 360) - Qualtrics
... Smart Analysis & Recommendations · Experience iD · Text Analysis Software ... Skip Logic · Add JavaScript · Add Default Choices ·...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Thanks @karajan1001, that makes it less problematic, although the original feature request from the user in #6071 was to alleviate the burden on users to be responsible for making unique names. It’s really just one implementation of #6071. I don’t see it as a likely feature to implement anytime soon, so we could set as low priority or move it to a discussion.
Similarly, there are workarounds for #6071, right? Like:
There could be all kinds of shortcuts to make this easier. Maybe it’s better to focus on a doc or blog post showing off how these kinds of tricks could make for a more robust way to organize experiments?