-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Support params in form of Gin Config files #7224
Comments
This would be amazing for my current project. |
Hey, have you considered using hydra? DVC has Hydra integration that should handle many of the use cases for Gin. Usually we try not to be opinionated about tooling, but in this case it was too hard to have meaningful support for complex configuration while being framework-agnostic. |
What I would really like to be able to do, at a minimum, is simply track certain
Otherwise, I think I'm left wrapping the whole pipeline with a script outside of the DVC CLI, where the params are parsed and dumped to a file prior to running |
Thanks for the clarification!
This should be possible using "top-level" params like this: stages:
dump_gin:
cmd: python dump_gin.py
deps:
- dump_gin.py
outs:
- gin_params.yaml
train:
cmd: python train.py
deps:
- gin_params.yaml
outs:
- model.pkl
params:
- gin_params.yaml You could also log parameters directly from your code with dvclive.log_param().
Support for string metrics will be available next release, but it seems like option 1 is closer to what you want. |
Thanks @dberenbaum, that's exactly the approach I tried out after posting the other day. It seems to work locally, but I'm not picking up anything besides the default I'm wondering if this is just because these changes are in a feature branch that I haven't yet merged to the default branch? I can't tell how exactly Studio picks up available params/metrics columns when it imports the project, but perhaps it relies on the default branch? My |
No, a directory of params isn't supported now unfortunately. I can open an issue to track it. Are you able to to try it tracking the individual params files? |
Ah, got it, I will try with individual files. Thanks for opening #9452. A little more documentation around these aspects of Studio integration would be nice. I also found by trial and error that a directory of plots is supported, but not stage level plots, only top level. |
Yup, you are right about that. In this case top-level params directories aren't supported in DVC either, and we need to clarify that. If it's supported in DVC, it should work in Studio.
Stage-level plots should be supported in Studio, so if you have more details, we can look into it. |
This was for a directory of .png plots. |
That looks to me to be working when trying out a simple example. If it's not working for you and you can reproduce it, could you please open an issue in https://github.com/iterative/studio-support/issues? |
Finally figured out that I needed to add |
Thanks for your patience in debugging the problem. I can confirm that behavior. I'll open a separate bug report for it. |
It would be nice to use DVC along with https://github.com/google/gin-config to handle parameters.
The text was updated successfully, but these errors were encountered: