-
Notifications
You must be signed in to change notification settings - Fork 30
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
Add experiment run reset to menus #1719
Conversation
9fac1f4
to
83eccac
Compare
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.
It looks good to me. Thinking more about this - I think we are in a better position to split those more explicitly and do similar thing to any IDEs - Run and Resume buttons instead of "Run (which is actually resume)" + "Reset and Run (which is just regular Run usually)". The current semantics is confusing, I'm making mistakes (granted that for some people that default semantics is better) - @dberenbaum @daavoo wdyt? The only downside is that it won't look and behave the same as in DVC :(
WDYT about leaving this for now and making a breaking change in DVC? We would have two commands:
The We could then follow up to match the new commands. For me it is important to match the DVC terminology but happy to do whatever is decided 👍🏻 . [Q] Which command is actually more popular? Run or resume? |
We don't see a lot of usage of checkpoints, so hard to say. Both are essential to the workflow.
I don't think "Run" by itself is helpful with checkpoints because both reset and resume are running experiments. Not sure if separate For the menus, I would suggest:
Thoughts? Related: For non-queue experiments, modifying params in the CLI is a convenience to avoid opening an editor, which isn't necessary for VS Code. You could have a separate option to modify params without doing anything else (either using the existing interface or by opening the params files in the editor). This may simplify the menu options and make it easier to review changes before running experiments. For queuing, you could:
|
Makes sense @dberenbaum ! Do we need to / if we can detect that resume / reset are needed? E.g. if we see from the workspace that no matter what you do it will be the new experiment so that we can simplify the actions? And if it's |
[Q] Can a non-checkpoint experiment be resumed? Does it make sense to even show these options when a project does not have checkpoints? Under what circumstances should an experiment be resumed?
I think we should cover this as part of #1537 rather than completely change the workflow now. Opening the file could be an interim step towards closing that story. Next steps for me:
|
Code Climate has analyzed commit 4970571 and detected 1 issue on this pull request. Here's the issue category breakdown:
The test coverage on the diff in this pull request is 83.3% (85% is the threshold). This pull request will bring the total coverage in the repository to 96.6% (-0.1% change). View more on Code Climate. |
Afaik, no. DVC will delete the outputs of the stage.
IMO, no. There is no concept (at least in DVC context) of resetting or resuming without checkpoints. Just run. |
@@ -30,6 +30,7 @@ | |||
"command.pushTarget": "Push", | |||
"command.modifyExperimentParamsAndQueue": "Modify Experiment Param(s) and Queue", | |||
"command.modifyExperimentParamsAndRun": "Modify Experiment Param(s) and Run", | |||
"command.modifyExperimentParamsResetAndRun": "Modify Experiment Param(s) Reset and Run", |
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.
"command.modifyExperimentParamsResetAndRun": "Modify Experiment Param(s) Reset and Run", | |
"command.modifyExperimentParamsResetAndRun": "Modify Experiment Param(s), Reset and Run", |
@@ -60,6 +61,7 @@ | |||
"command.views.experimentsTree.queueExperiment": "Modify Param(s) and Queue", | |||
"command.views.experimentsTree.removeExperiment": "Remove", | |||
"command.views.experimentsTree.runExperiment": "Modify Param(s) and Run", | |||
"command.views.experimentsTree.resetRunExperiment": "Modify Param(s) Reset and Run", |
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.
"command.views.experimentsTree.resetRunExperiment": "Modify Param(s) Reset and Run", | |
"command.views.experimentsTree.resetRunExperiment": "Modify Param(s), Reset and Run", |
Yes, I thought these options were only shown if existing checkpoints are found. If not, resume/reset options will not make sense. |
@dberenbaum @mattseddon @daavoo can we see if there are exiting checkpoints? |
Yes, checkpoint commits should include a |
I'll follow up and tag everyone in the new PR. |
Follow-up on this language. Given upcoming changes in iterative/dvc#7592, it might make sense to reword to "Start the [Experiments] Queue." |
Relates to #1711
Screenshots