I typically run scripts from my project’s root directory, and use parameters to point to inputs and outputs as needed. Wrapping with
dvc run generates a stage file in the root directory, which clutters the project.
I tried using the
-f option in
dvc run to specify a different path for the stage file, but it ended up causing problems with the data paths. In particular it appears that DVC considers the dependencies and output paths to be relative to the stage file.
My current solution is to make a
runs directory from where I execute all
dvc run commands. All the stage files end up in there. But this is a bit clunky and isn’t the pattern I usually use.
I’m wondering if I’m missing something here? Is there a way to store stage files to somewhere other than where the
dvc run command was executed?