Skip to content
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

exp init: create output dirs #7751

Closed
wants to merge 1 commit into from
Closed

exp init: create output dirs #7751

wants to merge 1 commit into from

Conversation

dberenbaum
Copy link
Contributor

Related to #7740 (comment).

This PR creates output directories (but not any files) during dvc exp init, which accomplishes:

  1. Avoiding errors when trying to Git-ignore those outputs.
  2. Making it easier for users to generate outputs without needing to generate the parent directories.
$ dvc exp init --metrics eval.json --plots eval/scalars --models models/predict.h5 python train.py
Creating dependencies: src, data and params.yaml
Creating output directories: eval/scalars and models
Creating train stage in dvc.yaml

Ensure your experiment command creates eval.json, eval/scalars and models/predict.h5.
You can now run your experiment using "dvc exp run".

@dberenbaum dberenbaum requested a review from a team as a code owner May 16, 2022 16:56
@dberenbaum dberenbaum requested review from pmrowla and skshetry and removed request for pmrowla May 16, 2022 16:56
@dberenbaum dberenbaum closed this May 16, 2022
@dberenbaum dberenbaum deleted the exp-init-out-dirs branch May 16, 2022 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant