Add --times flag to exp run/repro #5663
Replies: 8 comments
-
|
Current workaround (Linux): $ for run in {1..10}; do
dvc exp run ... ;
doneQuestions:
As for the name, maybe |
Beta Was this translation helpful? Give feedback.
-
Good point, but we do support those now with |
Beta Was this translation helpful? Give feedback.
-
|
Is that the use case for UPDATE: Doesn't seem like that's the intended use per #2479. Something about forcing "callback stages" (without deps) in the middle of a pipeline. |
Beta Was this translation helpful? Give feedback.
-
|
IMO this seems like something that should just be done by the user through shell scripting? |
Beta Was this translation helpful? Give feedback.
-
|
I see some downstream uses for this, but I can put them in an enhancement proposal with other thoughts on future experiment/checkpoint developments. If you don't mind, we can leave this here until I get to that. |
Beta Was this translation helpful? Give feedback.
-
|
Apparently it can be difficult to quit shell loops (e.g. a |
Beta Was this translation helpful? Give feedback.
-
|
That's specifically when it comes to using an infinite loop in a shell script. This flag would be for a fixed number of iterations, which isn't the same thing. |
Beta Was this translation helpful? Give feedback.
-
|
True. But you may want to exit a loop of 100,000 that takes all night. I'm guessing something like that has the same problem via shell scripting? BTW this assumes |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
It would be great to have a
--timesflag (maybe @jorgeorpinel has a better naming suggestion) that runs an experiment X many times. In other words,dvc exp run --times 5would run the same experiment 5 times.This benefits a couple of use cases:
One complication is that the first scenario is sequential and the second is parallelizable, but similar concerns are true with
--queue/--run-all. Maybe this could even be merged with--queue, like allowing multiple identical experiments to be added to accomplish the same idea.Thoughts @pmrowla?
Beta Was this translation helpful? Give feedback.
All reactions