question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

exp run: option to append unique id to duplicate exp names

See original GitHub issue

For 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:closed
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
dberenbaumcommented, Oct 27, 2021

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.

1reaction
dberenbaumcommented, Sep 27, 2021

Similarly, there are workarounds for #6071, right? Like:

lr=0.5
dvc exp run -n lr=$lr -S lr=$lr

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?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found